MCPcopy Create free account
hub / github.com/datastax/cql-proxy / NewFrameBodyReader

Function NewFrameBodyReader

codecs/reader.go:16–21  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

14}
15
16func NewFrameBodyReader(b []byte) *FrameBodyReader {
17 return &FrameBodyReader{
18 Reader: bytes.NewReader(b),
19 Body: b,
20 }
21}
22
23func (r *FrameBodyReader) Position() int64 {
24 pos, _ := r.Seek(0, io.SeekCurrent) // Doesn't fail

Calls

no outgoing calls