Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 1,280 for Byte (0.05 sec)

  1. src/bytes/buffer.go

    func (b *Buffer) Next(n int) []byte {
    	b.lastRead = opInvalid
    	m := b.Len()
    	if n > m {
    		n = m
    	}
    	data := b.buf[b.off : b.off+n]
    	b.off += n
    	if n > 0 {
    		b.lastRead = opRead
    	}
    	return data
    }
    
    // ReadByte reads and returns the next byte from the buffer.
    // If no byte is available, it returns error [io.EOF].
    func (b *Buffer) ReadByte() (byte, error) {
    	if b.empty() {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/SmbNegotiation.java

        private final SmbNegotiationResponse response;
        private final byte[] negoReqBuffer;
        private final byte[] negoRespBuffer;
    
    
        /**
         * @param request
         * @param response
         * @param negoRespBuffer
         * @param negoReqBuffer
         * 
         */
        public SmbNegotiation ( SmbNegotiationRequest request, SmbNegotiationResponse response, byte[] negoReqBuffer, byte[] negoRespBuffer ) {
            this.request = request;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/TransWaitNamedPipeResponse.java

        TransWaitNamedPipeResponse() {
        }
    
        int writeSetupWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int writeDataWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int readSetupWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  4. cmd/xl-storage_windows_test.go

    func TestUNCPaths(t *testing.T) {
    	testCases := []struct {
    		objName string
    		pass    bool
    	}{
    		{"/abcdef", true},
    		{"/a/b/c/d/e/f/g", true},
    		{string(bytes.Repeat([]byte("界"), 85)), true},
    		// Each path component must be <= 255 bytes long.
    		{string(bytes.Repeat([]byte("界"), 280)), false},
    		{`/p/q/r/s/t`, true},
    	}
    	dir := t.TempDir()
    
    	// Instantiate posix object to manage a disk
    	fs, err := newLocalXLStorage(dir)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/bufio/example_test.go

    	const input = "1234 5678 1234567901234567890"
    	scanner := bufio.NewScanner(strings.NewReader(input))
    	// Create a custom split function by wrapping the existing ScanWords function.
    	split := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
    		advance, token, err = bufio.ScanWords(data, atEOF)
    		if err == nil && token != nil {
    			_, err = strconv.ParseInt(string(token), 10, 32)
    		}
    		return
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComWrite.java

            dstIndex += 2;
    
            return dstIndex - start;
        }
    
    
        @Override
        protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            dst[ dstIndex++ ] = (byte) 0x01; /* BufferFormat */
            SMBUtil.writeInt2(this.count, dst, dstIndex); /* DataLength? */
            dstIndex += 2;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupRequest.java

         * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int)
         */
        @Override
        protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            SMBUtil.writeInt2(25, dst, dstIndex);
    
            dst[ dstIndex + 2 ] = (byte) ( this.sessionBinding ? 0x1 : 0 );
            dst[ dstIndex + 3 ] = (byte) ( this.securityMode );
            dstIndex += 4;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/MimeMap.java

        }
        public String getMimeType( String extension, String def ) throws IOException {
            int state, t, x, i, off;
            byte ch;
            byte[] type = new byte[128];
            byte[] buf = new byte[16];
            byte[] ext = extension.toLowerCase().getBytes( "ASCII" );
    
            state = ST_START;
            t = x = i = 0;
            for( off = 0; off < inLen; off++ ) {
                ch = in[off];
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.2K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        applicationLogs
          .assertLogEqual("--> POST $url (3-byte body)")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms, 0-byte body\)"""))
          .assertNoMoreLogs()
        networkLogs
          .assertLogEqual("--> POST $url http/1.1 (3-byte body)")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms, 0-byte body\)"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun basicResponseBody() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  10. cmd/xl-storage_test.go

    		fileName    string
    		offset      int64
    		bufSize     int
    		expectedBuf []byte
    		expectedErr error
    	}{
    		// Successful read at offset 0 and proper buffer size. - 1
    		{
    			volume, "myobject", 0, 5,
    			[]byte("hello"), nil,
    		},
    		// Success read at hierarchy. - 2
    		{
    			volume, "path/to/my/object", 0, 5,
    			[]byte("hello"), nil,
    		},
    		// Object is a directory. - 3
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top