Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for toBytes (0.05 sec)

  1. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

            assertNotEquals(guid1, guid2);
            assertEquals(16, guid1.toBytes().length);
            assertEquals(16, guid2.toBytes().length);
        }
    
        @Test
        public void testHandleGuidRoundTrip() {
            HandleGuid original = new HandleGuid();
            byte[] bytes = original.toBytes();
            HandleGuid reconstructed = new HandleGuid(bytes);
    
            assertEquals(original, reconstructed);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

        }
    
        /**
         * Convert the GUID to byte array for wire format (little-endian as per MS-SMB2)
         * @return 16-byte array representing the GUID in SMB wire format
         */
        public byte[] toBytes() {
            byte[] result = new byte[16];
            ByteBuffer bb = ByteBuffer.wrap(result).order(java.nio.ByteOrder.LITTLE_ENDIAN);
    
            long mostSig = guid.getMostSignificantBits();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

            dstIndex += 4;
    
            SMBUtil.writeInt8(0, dst, dstIndex); // Reserved (8 bytes)
            dstIndex += 8;
    
            System.arraycopy(createGuid.toBytes(), 0, dst, dstIndex, 16); // CreateGuid (16 bytes)
            dstIndex += 16;
    
            return dstIndex - start;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java

        private static final byte[] SIGNCONTEXT_300 = toCBytes("SmbSign");
        private static final byte[] SIGNLABEL_300 = toCBytes("SMB2AESCMAC");
        private static final byte[] SIGNLABEL_311 = toCBytes("SMBSigningKey");
    
        private static final byte[] APPCONTEXT_300 = toCBytes("SmbRpc");
        private static final byte[] APPLABEL_300 = toCBytes("SMB2APP");
        private static final byte[] APPLABEL_311 = toCBytes("SMBAppKey");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt

            byteArrayOf(192.toByte(), 168.toByte(), 0, 1),
          ),
        ).isEqualTo("192.168.0.1")
    
        assertThat(
          inet4AddressToAscii(
            byteArrayOf(252.toByte(), 253.toByte(), 254.toByte(), 255.toByte()),
          ),
        ).isEqualTo("252.253.254.255")
    
        assertThat(
          inet4AddressToAscii(
            byteArrayOf(255.toByte(), 255.toByte(), 255.toByte(), 255.toByte()),
          ),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/ByteConversionUtil.java

         */
        public static Byte toByte(final Object o) {
            return toByte(o, null);
        }
    
        /**
         * Converts to {@link Byte}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link Byte}
         */
        public static Byte toByte(final Object o, final String pattern) {
            if (o == null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

    private fun Buffer.skipCommasAndWhitespace(): Boolean {
      var commaFound = false
      loop@ while (!exhausted()) {
        when (this[0]) {
          ','.code.toByte() -> {
            // Consume ','.
            readByte()
            commaFound = true
          }
    
          ' '.code.toByte(), '\t'.code.toByte() -> {
            readByte()
            // Consume space or tab.
          }
    
          else -> break@loop
        }
      }
      return commaFound
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. docs/fr/docs/history-design-future.md

    J'ai évité la création d'un nouveau framework pendant plusieurs années. J'ai d'abord essayé de résoudre toutes les fonctionnalités couvertes par **FastAPI** en utilisant de nombreux frameworks, plug-ins et outils différents.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

        val utf8 = Buffer().writeUtf8(s)
        val v1 = utf8.readDecimalLong()
        require(utf8.readByte() == '.'.code.toByte())
        val v2 = utf8.readDecimalLong()
        writeVariableLengthLong(v1 * 40 + v2)
    
        while (!utf8.exhausted()) {
          require(utf8.readByte() == '.'.code.toByte())
          val vN = utf8.readDecimalLong()
          writeVariableLengthLong(vN)
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

    internal const val TYPE_VALID = 6
    
    private fun BufferedSource.skipWhitespace() {
      while (!exhausted()) {
        if (buffer[0] != ' '.code.toByte()) return
        skip(1L)
      }
    }
    
    private fun BufferedSource.skipRestOfLine() {
      when (val newline = indexOf('\n'.code.toByte())) {
        -1L -> skip(buffer.size) // Exhaust this source.
        else -> skip(newline + 1)
      }
    }
    
    /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top