Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for writeByte (0.12 sec)

  1. cmd/test-utils_test.go

    	var buf bytes.Buffer
    	for _, k := range headers {
    		buf.WriteString(k)
    		buf.WriteByte(':')
    		switch {
    		case k == "host":
    			buf.WriteString(req.URL.Host)
    			fallthrough
    		default:
    			for idx, v := range headerMap[k] {
    				if idx > 0 {
    					buf.WriteByte(',')
    				}
    				buf.WriteString(v)
    			}
    			buf.WriteByte('\n')
    		}
    	}
    	canonicalHeaders := buf.String()
    
    	// Get signed headers.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2.go

    	var s strings.Builder
    	if x&xlFlagFreeVersion != 0 {
    		s.WriteString("FreeVersion")
    	}
    	if x&xlFlagUsesDataDir != 0 {
    		if s.Len() > 0 {
    			s.WriteByte(',')
    		}
    		s.WriteString("UsesDD")
    	}
    	if x&xlFlagInlineData != 0 {
    		if s.Len() > 0 {
    			s.WriteByte(',')
    		}
    		s.WriteString("Inline")
    	}
    	return s.String()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  3. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertFailsWith<ConnectionShutdownException> {
          connection.newStream(headerEntries("b", "banana"), false)
        }
        val sink = stream.getSink().buffer()
        assertFailsWith<IOException> {
          sink.writeByte(0)
          sink.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream finished")
        }
        assertFailsWith<IOException> {
          stream.getSource().read(Buffer(), 1)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    	}
    }
    
    type readFromWriter struct {
    	buf           []byte
    	writeBytes    int
    	readFromBytes int
    }
    
    func (w *readFromWriter) Write(p []byte) (int, error) {
    	w.buf = append(w.buf, p...)
    	w.writeBytes += len(p)
    	return len(p), nil
    }
    
    func (w *readFromWriter) ReadFrom(r io.Reader) (int64, error) {
    	b, err := io.ReadAll(r)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2_gen.go

    	err = en.Append(0xa2, 0x49, 0x44)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes((z.VersionID)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	// write "DDir"
    	err = en.Append(0xa4, 0x44, 0x44, 0x69, 0x72)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes((z.DataDir)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "DataDir")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
Back to top