MCPcopy
hub / github.com/unkeyed/unkey / Bytes

Method Bytes

pkg/fuzz/get.go:96–98  ·  view source on GitHub ↗

Bytes extracts a variable-length byte slice from the Consumer. Uses a uint16 for the length prefix, limiting slices to 65535 bytes.

()

Source from the content-addressed store, hash-verified

94// Bytes extracts a variable-length byte slice from the Consumer.
95// Uses a uint16 for the length prefix, limiting slices to 65535 bytes.
96func (c *Consumer) Bytes() []byte {
97 return c.take(int(c.Uint16()))
98}
99
100// BytesN extracts exactly n bytes from the Consumer.
101func (c *Consumer) BytesN(n int) []byte {

Calls 2

takeMethod · 0.95
Uint16Method · 0.95