Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 1,385 for BYTE (0.13 sec)

  1. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

         */
        @Test
        void testConstructorWithEmptyToken() {
            byte[] emptyToken = new byte[0];
            assertThrows(PACDecodingException.class, () -> new KerberosToken(emptyToken));
        }
    
        /**
         * Test constructor with a malformed token (not ASN.1).
         */
        @Test
        void testConstructorWithMalformedToken() {
            byte[] malformedToken = "This is not a valid token".getBytes();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dtyp/ACETest.java

            testBuffer = new byte[100];
            testBuffer[0] = (byte) 0xFF; // Non-zero = Deny
            testBuffer[1] = (byte) 0xFF; // All flags
            testBuffer[2] = (byte) 0xFF; // Size low byte
            testBuffer[3] = (byte) 0xFF; // Size high byte
            testBuffer[4] = (byte) 0xFF; // Access mask all bits
            testBuffer[5] = (byte) 0xFF;
            testBuffer[6] = (byte) 0xFF;
            testBuffer[7] = (byte) 0xFF;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  3. cmd/bitrot.go

    func NewBitrotVerifier(algorithm BitrotAlgorithm, checksum []byte) *BitrotVerifier {
    	return &BitrotVerifier{algorithm, checksum}
    }
    
    // BitrotVerifier can be used to verify protected data.
    type BitrotVerifier struct {
    	algorithm BitrotAlgorithm
    	sum       []byte
    }
    
    // BitrotAlgorithmFromString returns a bitrot algorithm from the given string representation.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 19:26:13 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            assertEquals(DACL_SECURITY_INFORMATION, desc3.securityInformation);
    
            // Verify writing doesn't affect other instances
            byte[] dst1 = new byte[8];
            byte[] dst2 = new byte[8];
            byte[] dst3 = new byte[8];
    
            desc1.writeParametersWireFormat(dst1, 0);
            desc2.writeParametersWireFormat(dst2, 0);
            desc3.writeParametersWireFormat(dst3, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java

            this.leaseState = leaseState;
            this.leaseFlags = 0;
            this.parentLeaseKey = parentLeaseKey != null ? parentLeaseKey : new Smb2LeaseKey(new byte[16]);
            this.epoch = epoch;
        }
    
        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Gets the lease key for this V2 lease request
         * @return the lease key
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            netShareEnum = new NetShareEnum(realConfig);
    
            // Test with offset 0
            byte[] dst1 = new byte[256];
            int bytesWritten1 = netShareEnum.writeParametersWireFormat(dst1, 0);
    
            // Test with offset 100
            byte[] dst2 = new byte[256];
            int bytesWritten2 = netShareEnum.writeParametersWireFormat(dst2, 100);
    
            // Same number of bytes should be written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponse.java

        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

         */
        public NdrBuffer deferred;
    
        /**
         * Constructs an NdrBuffer with the specified byte array and starting position.
         *
         * @param buf the byte array to use as the buffer
         * @param start the starting position in the buffer
         */
        public NdrBuffer(final byte[] buf, final int start) {
            this.buf = buf;
            this.start = index = start;
            length = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", 0x16, 10, 1024);
    
            byte[] buffer = new byte[10];
            int written = trans2FindFirst2.writeSetupWireFormat(buffer, 0);
    
            assertEquals(2, written);
            assertEquals((byte) Trans2FindFirst2.TRANS2_FIND_FIRST2, buffer[0]);
            assertEquals((byte) 0x00, buffer[1]);
        }
    
        @Test
        @DisplayName("Test writeParametersWireFormat")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            // Test interface method
            byte[] newFileId = new byte[16];
            Arrays.fill(newFileId, (byte) 0x42);
    
            ((jcifs.internal.smb2.RequestWithFileId) request).setFileId(newFileId);
    
            // Verify it was set correctly by writing to wire format
            byte[] buffer = new byte[256];
            request.writeBytesWireFormat(buffer, 0);
    
            byte[] copiedFileId = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top