Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 1,386 for Byte (0.07 sec)

  1. cmd/streaming-signature-v4_test.go

    func TestParseS3ChunkExtension(t *testing.T) {
    	type testCase struct {
    		buf       []byte
    		chunkSize []byte
    		chunkSign []byte
    	}
    
    	tests := []testCase{
    		// Test - 1 valid case.
    		{
    			[]byte("10000;chunk-signature=ad80c730a21e5b8d04586a2213dd63b9a0e99e0e2307b0ade35a65485a288648"),
    			[]byte("10000"),
    			[]byte("ad80c730a21e5b8d04586a2213dd63b9a0e99e0e2307b0ade35a65485a288648"),
    		},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SecureCredentialStorage.java

                } else if (c < 0x800) {
                    bytes[byteIndex++] = (byte) (0xC0 | (c >> 6));
                    bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F));
                } else {
                    bytes[byteIndex++] = (byte) (0xE0 | (c >> 12));
                    bytes[byteIndex++] = (byte) (0x80 | ((c >> 6) & 0x3F));
                    bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F));
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. cmd/storage-rest-server.go

    				// concurrently, check for it before we
    				// write the filler byte.
    				select {
    				case err := <-doneCh:
    					if err != nil {
    						write([]byte{1})
    						write([]byte(err.Error()))
    					} else {
    						write([]byte{0})
    					}
    					return
    				default:
    				}
    
    				// Response not ready, write a filler byte.
    				write([]byte{32})
    				if canWrite {
    					xhttp.Flush(w)
    				}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 45.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            assertNull(serverData.guid);
        }
    
        /**
         * Test setting and getting byte field (sflags)
         */
        @ParameterizedTest
        @ValueSource(bytes = { 0x00, 0x01, 0x7F, (byte) 0x80, (byte) 0xFF })
        @DisplayName("Test sflags field with various byte values")
        public void testSflagsField(byte value) {
            // When
            serverData.sflags = value;
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        void testReadTrailerWireFormatErrorMessage() {
            byte[] buffer = new byte[10];
            ByteArrayInputStream bais = new ByteArrayInputStream(buffer);
    
            SessionRequestPacket packet = new SessionRequestPacket(mockConfig);
            packet.length = 100;
    
            // Create a larger buffer for reading to avoid IndexOutOfBoundsException
            byte[] readBuffer = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

        static void writeInt2(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 8 & 0xFF);
            dstIndex++;
            dst[dstIndex] = (byte) (val & 0xFF);
        }
    
        static void writeInt4(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 24 & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (val >> 16 & 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

        void testWriteSetupWireFormat() {
            byte[] buffer = new byte[100];
            int result = response.writeSetupWireFormat(buffer, 0);
    
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test writeParametersWireFormat returns 0")
        void testWriteParametersWireFormat() {
            byte[] buffer = new byte[100];
            int result = response.writeParametersWireFormat(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  8. cmd/streaming-v4-unsigned.go

    		trailers: req.Trailer,
    		reader:   bufio.NewReader(req.Body),
    		buffer:   make([]byte, 64*1024),
    	}, ErrNone
    }
    
    // Represents the overall state that is required for decoding a
    // AWS Signature V4 chunked reader.
    type s3UnsignedChunkedReader struct {
    	reader   *bufio.Reader
    	trailers http.Header
    
    	buffer []byte
    	offset int
    	err    error
    	debug  bool
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Apr 03 14:55:52 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SIDTest.java

                // Arrange: revision=1, count=2, identAuth zeros except last byte, subauth 10, 20
                byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 };
                rpc.sid_t st = buildSidT((byte) 1, ident, 10, 20);
    
                byte[] bytes = SID.toByteArray(st);
    
                // Act: construct from bytes and re-encode
                SID sid = new SID(bytes, 0);
                byte[] roundTrip = sid.toByteArray();
    
                // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameQueryRequest.java

        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return readQuestionSectionWireFormat(src, srcIndex);
        }
    
        @Override
        int writeRDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top