Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 966 for 1bytes (1.47 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            // When an output buffer is provided, bytes are copied and getOutputData(Class) should fail.
            byte[] header = buildHeader(NtStatus.NT_STATUS_SUCCESS);
            byte[] output = new byte[] { 1, 2, 3, 4, 5 };
            byte[] body = buildIoctlResponseBody(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, new byte[16], 0, null, output.length, output, 0x0);
            byte[] packet = new byte[header.length + body.length];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            dst[dstIndex++] = (byte) (val >> 24);
        }
    
        private void writeInt8(long val, byte[] dst, int dstIndex) {
            dst[dstIndex++] = (byte) val;
            dst[dstIndex++] = (byte) (val >> 8);
            dst[dstIndex++] = (byte) (val >> 16);
            dst[dstIndex++] = (byte) (val >> 24);
            dst[dstIndex++] = (byte) (val >> 32);
            dst[dstIndex++] = (byte) (val >> 40);
            dst[dstIndex++] = (byte) (val >> 48);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/Base64Test.java

         */
        static Stream<Arguments> decodeProvider() {
            return Stream.of(Arguments.of("", new byte[0]), Arguments.of("QQ==", new byte[] { (byte) 0x41 }), // "A"
                    Arguments.of("QUI=", new byte[] { (byte) 0x41, (byte) 0x42 }), // "AB"
                    Arguments.of("TWFu", "Man".getBytes()), Arguments.of("AAAA", new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0x00 }), // all zeros
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Arrange
            byte[] key14 = hex("01020304050607 11121314151617"); // two 7-byte chunks
            byte[] key7 = Arrays.copyOfRange(key14, 0, 7);
            byte[] data8 = NtlmUtil.S8;
            byte[] out14 = new byte[16];
            byte[] out7 = new byte[8];
    
            // Act
            NtlmUtil.E(key14, data8, out14);
            NtlmUtil.E(key7, data8, out7);
    
            // Assert: first block identical to single-chunk encryption
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

         */
        public Object fromBinaryToObject(final byte[] bytes) {
            final String serializer = getSerializerType();
            return switch (serializer) {
            case KRYO -> deserializeWithKryo(bytes);
            case JAVABIN -> SerializeUtil.fromBinaryToObject(bytes);
            default -> throw new IllegalArgumentException("Unexpected value: " + serializer);
            };
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/SerializeUtil.java

        }
    
        /**
         * Converts a byte array to an object.
         *
         * @param bytes the byte array (must not be {@literal null})
         * @return the deserialized object
         */
        public static Object fromBinaryToObject(final byte[] bytes) {
            assertArgumentNotEmpty("bytes", bytes);
    
            try {
                final ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            int namedPipeState = 0x02;
            int readDataAvailable = 256;
            int numberOfMessages = 5;
            int messageLength = 128;
            byte[] testData = { (byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC, (byte) 0xBB, (byte) 0xAA, (byte) 0x99, (byte) 0x88 };
    
            // Write values to buffer at offset
            SMBUtil.writeInt4(namedPipeState, buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            int totalSize = 12 + fileNameBytes.length + 50; // Extra space for safety
            byte[] buffer = new byte[totalSize];
    
            // Write next entry offset (4 bytes)
            SMBUtil.writeInt4(nextOffset, buffer, 0);
    
            // Write action (4 bytes)
            SMBUtil.writeInt4(action, buffer, 4);
    
            // Write file name length (4 bytes)
            SMBUtil.writeInt4(fileNameBytes.length, buffer, 8);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

         *
         * @param b the byte array to write
         * @param i the starting index in the array
         * @param l the number of bytes to write
         */
        public void writeOctetArray(final byte[] b, final int i, final int l) {
            System.arraycopy(b, i, this.buf, this.index, l);
            advance(l);
        }
    
        /**
         * Reads an octet array from the buffer.
         *
         * @param b the byte array to read into
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/util/Encdec.java

         */
        public static int enc_uint32le(final int i, final byte[] dst, int di) {
            dst[di] = (byte) (i & 0xFF);
            di++;
            dst[di++] = (byte) (i >> 8 & 0xFF);
            dst[di++] = (byte) (i >> 16 & 0xFF);
            dst[di] = (byte) (i >> 24 & 0xFF);
            return 4;
        }
    
        /* Decode integers
         */
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
Back to top