Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 86 of 86 for writeType (0.9 sec)

  1. src/bufio/bufio_test.go

    func BenchmarkWriterEmpty(b *testing.B) {
    	b.ReportAllocs()
    	str := strings.Repeat("x", 1<<10)
    	bs := []byte(str)
    	for i := 0; i < b.N; i++ {
    		bw := NewWriter(io.Discard)
    		bw.Flush()
    		bw.WriteByte('a')
    		bw.Flush()
    		bw.WriteRune('B')
    		bw.Flush()
    		bw.Write(bs)
    		bw.Flush()
    		bw.WriteString(str)
    		bw.Flush()
    	}
    }
    
    func BenchmarkWriterFlush(b *testing.B) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 07 01:08:54 UTC 2025
    - 51.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertFailsWith<ConnectionShutdownException> {
          connection.newStream(headerEntries("b", "banana"), false)
        }
        val sink = stream.sink.buffer()
        assertFailsWith<IOException> {
          sink.writeByte(0)
          sink.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream finished")
        }
        assertFailsWith<IOException> {
          stream.source.read(Buffer(), 1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    					if i == len(in) {
    						break
    					}
    				}
    				if len(old) == 0 {
    					_, length := utf8.DecodeRune(in[i:])
    					out.Write(in[i : i+length])
    					i += length
    				} else {
    					out.WriteByte(in[i])
    					i++
    				}
    			}
    			if len(old) == 0 && n != 0 {
    				out.Write(new)
    			}
    			return out.Bytes()
    		}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  4. api/go1.14.txt

    pkg hash/maphash, method (*Hash) Sum([]uint8) []uint8
    pkg hash/maphash, method (*Hash) Sum64() uint64
    pkg hash/maphash, method (*Hash) Write([]uint8) (int, error)
    pkg hash/maphash, method (*Hash) WriteByte(uint8) error
    pkg hash/maphash, method (*Hash) WriteString(string) (int, error)
    pkg hash/maphash, type Hash struct
    pkg hash/maphash, type Seed struct
    pkg log, const Lmsgprefix = 64
    pkg log, const Lmsgprefix ideal-int
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg bufio, method (*Writer) Available() int
    pkg bufio, method (*Writer) Buffered() int
    pkg bufio, method (*Writer) Flush() error
    pkg bufio, method (*Writer) Write([]uint8) (int, error)
    pkg bufio, method (*Writer) WriteByte(uint8) error
    pkg bufio, method (*Writer) WriteRune(int32) (int, error)
    pkg bufio, method (*Writer) WriteString(string) (int, error)
    pkg bufio, method (ReadWriter) Available() int
    pkg bufio, method (ReadWriter) Flush() error
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  6. api/go1.1.txt

    pkg image, const YCbCrSubsampleRatio444 = 0
    pkg image/draw, const Over = 0
    pkg image/draw, const Src = 1
    pkg image/jpeg, const DefaultQuality = 75
    pkg io, type ByteWriter interface { WriteByte }
    pkg io, type ByteWriter interface, WriteByte(uint8) error
    pkg io, var ErrNoProgress error
    pkg log, const Ldate = 1
    pkg log, const Llongfile = 8
    pkg log, const Lmicroseconds = 4
    pkg log, const Lshortfile = 16
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top