Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 1,385 for 1byte (0.02 sec)

  1. src/test/java/jcifs/smb/SmbTransportImplTest.java

                setField(transport, "negotiated", nego);
    
                byte[] input = new byte[] { 10, 20, 30, 40 };
                byte[] hash1 = transport.calculatePreauthHash(input, 0, input.length, null);
                assertNotNull(hash1);
                assertEquals(64, hash1.length, "SHA-512 size");
    
                byte[] hash2 = transport.calculatePreauthHash(new byte[] { 50 }, 0, 1, hash1);
                assertNotNull(hash2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        void testSetSecurityFlags() {
            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            request.setSecurityFlags((byte) 0x01);
            // Verify through writeBytesWireFormat
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, 0);
            assertEquals((byte) 0x01, buffer[2]);
        }
    
        @Test
        @DisplayName("Test oplock level setter")
        void testSetRequestedOplockLevel() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // Test with different fileId patterns
                byte[] zeroFileId = new byte[16];
                Smb2CloseResponse zeroIdResponse = new Smb2CloseResponse(mockConfig, zeroFileId, testFileName);
                assertArrayEquals(zeroFileId, zeroIdResponse.getFileId());
    
                byte[] maxFileId = new byte[16];
                Arrays.fill(maxFileId, (byte) 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/AllocInfoTest.java

                // Test all known constants
                byte[] classes = { FileSystemInformation.SMB_INFO_ALLOCATION, FileSystemInformation.FS_SIZE_INFO,
                        FileSystemInformation.FS_FULL_SIZE_INFO, (byte) 0, (byte) 1, (byte) 127, (byte) -128 };
    
                for (byte fsClass : classes) {
                    TestAllocInfo allocInfo = new TestAllocInfo(1024L, 512L, fsClass);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/bytes/reader_test.go

    	r := NewReader([]byte(data))
    	if got, want := r.Len(), 11; got != want {
    		t.Errorf("r.Len(): got %d, want %d", got, want)
    	}
    	if n, err := r.Read(make([]byte, 10)); err != nil || n != 10 {
    		t.Errorf("Read failed: read %d %v", n, err)
    	}
    	if got, want := r.Len(), 1; got != want {
    		t.Errorf("r.Len(): got %d, want %d", got, want)
    	}
    	if n, err := r.Read(make([]byte, 1)); err != nil || n != 1 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        private int readSize;
        private boolean async;
        private int treeId;
        private long mid, asyncId, sessionId;
        private byte errorContextCount;
        private byte[] errorData;
    
        private boolean retainPayload;
        private byte[] rawPayload;
    
        private ServerMessageBlock2 next;
    
        /**
         * Constructor for SMB2 message block with configuration.
         *
         * @param config the configuration object
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java

            assertEquals(0, dst[2], "Third byte should be 0 (no FID)");
            assertEquals(0, dst[3], "Fourth byte should be 0 (no FID)");
        }
    
        @Test
        public void testReadSetupWireFormat() {
            // Test the readSetupWireFormat method
            TransWaitNamedPipe pipe = new TransWaitNamedPipe("\\\\pipe\\testPipe");
            byte[] buffer = new byte[10];
    
            // The implementation always returns 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/av/AvFlags.java

         * Gets the flags as an integer value
         * @return flags
         */
        public int getFlags() {
            return SMBUtil.readInt4(this.getRaw(), 0);
        }
    
        private static byte[] encode(final int flags) {
            final byte[] raw = new byte[4];
            SMBUtil.writeInt4(flags, raw, 0);
            return raw;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/PrimitiveSink.java

    @Beta
    public interface PrimitiveSink {
      /**
       * Puts a byte into this sink.
       *
       * @param b a byte
       * @return this instance
       */
      @CanIgnoreReturnValue
      PrimitiveSink putByte(byte b);
    
      /**
       * Puts an array of bytes into this sink.
       *
       * @param bytes a byte array
       * @return this instance
       */
      @CanIgnoreReturnValue
      PrimitiveSink putBytes(byte[] bytes);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. cmd/xl-storage-meta-inline.go

    func (x *xlMetaInlineData) replace(key string, value []byte) {
    	in := x.afterVersion()
    	sz, buf, _ := msgp.ReadMapHeaderBytes(in)
    	keys := make([][]byte, 0, sz+1)
    	vals := make([][]byte, 0, sz+1)
    
    	// Version plus header...
    	plSize := 1 + msgp.MapHeaderSize
    	replaced := false
    	for range sz {
    		var found, foundVal []byte
    		var err error
    		found, buf, err = msgp.ReadMapKeyZC(buf)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top