Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,352 for BYTE (0.02 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

                    Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }),
                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
        @ParameterizedTest
        @MethodSource("int32Provider")
        @DisplayName("readParameterWordsWireFormat correctly decodes 32-bit offset")
        void testReadParameterWords(int expectedInt, byte[] bytes) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

    /**
     * An implementation of {@link DataOutput} that uses little-endian byte ordering for writing {@code
     * char}, {@code short}, {@code int}, {@code float}, {@code double}, and {@code long} values.
     *
     * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code
     * DataOutput}, which explicitly requires big-endian byte order.
     *
     * @author Chris Nokleberg
     * @author Keith Bottner
     * @since 8.0
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

            byte[] encoded = encodeUnicode(msg);
            assertEquals(4, encoded.length, "Encoded Unicode string should be 4 bytes");
    
            // Verify little-endian encoding
            assertEquals((byte) 0xA1, encoded[0], "First byte of first character");
            assertEquals((byte) 0x00, encoded[1], "Second byte of first character");
            assertEquals((byte) 0xA2, encoded[2], "First byte of second character");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        checkHmac(expected, Hashing.hmacMd5(key), data);
      }
    
      private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) {
        assertEquals(HashCode.fromString(expected), hashFunc.hashBytes(data));
      }
    
      private static byte[] fillByteArray(int size, int toFillWith) {
        byte[] array = new byte[size];
        Arrays.fill(array, (byte) toFillWith);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

         * @param encryptedData Encrypted data
         * @param unknownTag Optional unknown tag number to test error handling
         * @return A byte array representing the ticket
         * @throws IOException on encoding error
         */
        private byte[] createTestTicketBytes(Number version, String realm, String principalName, int encType, byte[] encryptedData,
                Integer unknownTag) throws IOException {
            ASN1EncodableVector v = new ASN1EncodableVector();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/text/Tokenizer.java

        private static final int NEED_CHAR = Integer.MAX_VALUE;
    
        private static final int QUOTE = '\'';
    
        private static final byte CT_WHITESPACE = 1;
    
        private static final byte CT_ALPHA = 4;
    
        private final byte[] ctype;
    
        private static byte[] defaultCtype = new byte[256];
    
        private final String str;
    
        private int colno = 0;
    
        private int ttype = TT_NOTHING;
    
        private String sval;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

            assertTrue(result.contains("dataOffset=54"));
        }
    
        // Helper method to write a 2-byte integer to a byte array
        private void writeInt2(int val, byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) val;
            dst[dstIndex + 1] = (byte) (val >> 8);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/HMACT64.java

        private static final int BLOCK_LENGTH = 64;
    
        private static final byte IPAD = (byte) 0x36;
    
        private static final byte OPAD = (byte) 0x5c;
    
        private MessageDigest md5;
    
        private byte[] ipad = new byte[BLOCK_LENGTH];
    
        private byte[] opad = new byte[BLOCK_LENGTH];
    
        /**
         * Creates an HMACT64 instance which uses the given secret key material.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/HMACT64.java

        private static final int BLOCK_LENGTH = 64;
    
        private static final byte IPAD = (byte) 0x36;
    
        private static final byte OPAD = (byte) 0x5c;
    
        private final MessageDigest md5;
    
        private byte[] ipad = new byte[BLOCK_LENGTH];
    
        private byte[] opad = new byte[BLOCK_LENGTH];
    
        /**
         * Creates an HMACT64 instance which uses the given secret key material.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/EncodableTest.java

                    Arguments.of(makeSeq(16), 0, 0, 5) // zero-length with non-zero dst index
            );
        }
    
        // Creates a deterministic byte sequence [0,1,2,...,n-1]
        private static byte[] makeSeq(int n) {
            byte[] a = new byte[n];
            for (int i = 0; i < n; i++) {
                a[i] = (byte) i;
            }
            return a;
        }
    
        @ParameterizedTest
        @MethodSource("byteEncodableArgs")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top