Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,352 for 1byte (0.1 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

            byte[] dst = new byte[42];
    
            // When
            int result = trans2SetFileInformation.writeDataWireFormat(dst, 0);
    
            // Then
            assertEquals(40, result); // Returns 40 bytes written
        }
    
        @Test
        void testReadSetupWireFormat() {
            // When
            int result = trans2SetFileInformation.readSetupWireFormat(new byte[0], 0, 0);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

         */
        private byte[] generateTestData(int size) {
            byte[] data = new byte[size];
    
            // Create data with repeating patterns
            for (int i = 0; i < size; i++) {
                if (i % 100 < 50) {
                    data[i] = (byte) 'A';
                } else if (i % 100 < 75) {
                    data[i] = (byte) 'B';
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Test initial encryption
            byte[] plaintext1 = "Before rotation".getBytes();
            byte[] encrypted1 = context.encryptMessage(plaintext1, 1L);
            byte[] decrypted1 = context.decryptMessage(encrypted1);
            assertArrayEquals(plaintext1, decrypted1);
    
            // When - Rotate keys
            byte[] newEncKey = new byte[16];
            byte[] newDecKey = new byte[16];
            new SecureRandom().nextBytes(newEncKey);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. cmd/batch-job-common-types_gen.go

    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z BatchJobSize) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendInt64(o, int64(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BatchJobSize) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 int64
    		zb0001, bts, err = msgp.ReadInt64Bytes(bts)
    		if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            long previousSessionId = 0x123456789ABCDEF0L;
            byte[] token = { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66, (byte) 0x77, (byte) 0x88 };
    
            Smb2SessionSetupRequest req = new Smb2SessionSetupRequest(mockContext, securityMode, capabilities, previousSessionId, token);
            req.setSessionBinding(true);
            byte[] buffer = new byte[512];
    
            // When
            req.encode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                buffer[2] = 0x01; // Oplock level
                buffer[3] = (byte) 0xAA; // Reserved byte
    
                // Reserved2 field (4 bytes at offset 4)
                buffer[4] = (byte) 0xBB;
                buffer[5] = (byte) 0xCC;
                buffer[6] = (byte) 0xDD;
                buffer[7] = (byte) 0xEE;
    
                byte[] fileId = createTestData(16);
                System.arraycopy(fileId, 0, buffer, 8, 16);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    	a := make([][]byte, len(spans))
    	for i, span := range spans {
    		a[i] = s[span.start:span.end:span.end]
    	}
    
    	return a
    }
    
    // Join concatenates the elements of s to create a new byte slice. The separator
    // sep is placed between elements in the resulting slice.
    func Join(s [][]byte, sep []byte) []byte {
    	if len(s) == 0 {
    		return []byte{}
    	}
    	if len(s) == 1 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/Type3Message.java

     * Represents an NTLMSSP Type-3 message.
     */
    public class Type3Message extends NtlmMessage {
    
        private byte[] lmResponse;
        private byte[] ntResponse;
        private String domain;
        private String user;
        private String workstation;
        private byte[] masterKey = null;
        private byte[] sessionKey = null;
        private byte[] mic = null;
        private boolean micRequired;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

                    { 10, 90 }, // 10 byte offset, 90 bytes
                    { 50, 50 }, // 50 byte offset, 50 bytes
                    { 0, 0 }, // Empty buffer
                    { 100, 100 } // Large values
            };
    
            for (int[] testCase : testCases) {
                // Arrange
                byte[] buffer = new byte[200];
                int bufferIndex = testCase[0];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/bytes/compare_test.go

    )
    
    var compareTests = []struct {
    	a, b []byte
    	i    int
    }{
    	{[]byte(""), []byte(""), 0},
    	{[]byte("a"), []byte(""), 1},
    	{[]byte(""), []byte("a"), -1},
    	{[]byte("abc"), []byte("abc"), 0},
    	{[]byte("abd"), []byte("abc"), 1},
    	{[]byte("abc"), []byte("abd"), -1},
    	{[]byte("ab"), []byte("abc"), -1},
    	{[]byte("abc"), []byte("ab"), 1},
    	{[]byte("x"), []byte("ab"), 1},
    	{[]byte("ab"), []byte("x"), -1},
    	{[]byte("x"), []byte("a"), 1},
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Jul 13 23:11:42 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top