MCPcopy
hub / github.com/segmentio/kafka-go / Bytes

Function Bytes

protocol/prototest/bytes.go:8–10  ·  view source on GitHub ↗

Bytes constructs a Bytes which exposes the content of b.

(b []byte)

Source from the content-addressed store, hash-verified

6
7// Bytes constructs a Bytes which exposes the content of b.
8func Bytes(b []byte) protocol.Bytes {
9 return protocol.NewBytes(b)
10}
11
12// String constructs a Bytes which exposes the content of s.
13func String(s string) protocol.Bytes {

Callers 6

TestFetchResponseFunction · 0.92
BenchmarkFetchResponseFunction · 0.92
TestProduceRequestFunction · 0.92
BenchmarkProduceRequestFunction · 0.92
TestRawProduceRequestFunction · 0.92
BenchmarkProduceRequestFunction · 0.92

Calls 1

NewBytesFunction · 0.92

Tested by 6

TestFetchResponseFunction · 0.74
BenchmarkFetchResponseFunction · 0.74
TestProduceRequestFunction · 0.74
BenchmarkProduceRequestFunction · 0.74
TestRawProduceRequestFunction · 0.74
BenchmarkProduceRequestFunction · 0.74