MCPcopy
hub / github.com/vitessio/vitess / BinWriter

Interface BinWriter

go/sqltypes/value.go:69–71  ·  view source on GitHub ↗

BinWriter interface is used for encoding values. Types like bytes.Buffer conform to this interface. We expect the writer objects to be in-memory buffers. So, we don't expect the write operations to fail.

Source from the content-addressed store, hash-verified

67 // We expect the writer objects to be in-memory buffers.
68 // So, we don't expect the write operations to fail.
69 BinWriter interface {
70 Write([]byte) (int, error)
71 }
72
73 // Value can store any SQL value. If the value represents
74 // an integral type, the bytes are always stored as a canonical

Callers 8

setCredsFunction · 0.65
WritePacketDirectMethod · 0.65
WritePacketHeaderMethod · 0.65
WritePacketRawMethod · 0.65

Implementers 15

Buffergo/bytes2/buffer.go
fuzztestConngo/mysql/mysql_fuzzer.go
testConngo/mysql/conn_fake.go
ConnWithTimeoutsgo/netutil/conn.go
mockWritergo/stats/opentsdb/backend_test.go
fileWritergo/stats/opentsdb/file_writer.go
httpWritergo/stats/opentsdb/http_writer.go
meteredWritergo/vt/mysqlctl/compression_benchmark_t
timedWritergo/vt/mysqlctl/compression_benchmark_t
externalCompressorgo/vt/mysqlctl/compression.go
backupPipego/vt/mysqlctl/builtinbackupengine.go
rwCloseFailFirstCallgo/vt/mysqlctl/blackbox/backup_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…