()
| 176 | func (c *ReadContext) ReadByte() byte { return c.buffer.ReadByte(c.Err()) } |
| 177 | |
| 178 | func (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 | |
| 188 | func (c *ReadContext) ReadBinary() []byte { |
| 189 | err := c.Err() |
nothing calls this directly
no test coverage detected