MCPcopy Create free account
hub / github.com/apache/fory / RawString

Method RawString

go/fory/reader.go:178–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176func (c *ReadContext) ReadByte() byte { return c.buffer.ReadByte(c.Err()) }
177
178func (c *ReadContext) RawString() string {
179 err := c.Err()
180 length := c.buffer.ReadVarUint32(err)
181 if length == 0 {
182 return ""
183 }
184 data := c.buffer.ReadBinary(int(length), err)
185 return string(data)
186}
187
188func (c *ReadContext) ReadBinary() []byte {
189 err := c.Err()

Callers

nothing calls this directly

Calls 4

ErrMethod · 0.95
stringFunction · 0.50
ReadVarUint32Method · 0.45
ReadBinaryMethod · 0.45

Tested by

no test coverage detected