ReadBinaryLength reads a byte length value for binary data.
()
| 262 | |
| 263 | // ReadBinaryLength reads a byte length value for binary data. |
| 264 | func (c *ReadContext) ReadBinaryLength() int { |
| 265 | err := c.Err() |
| 266 | length := c.buffer.ReadLength(err) |
| 267 | if c.err.HasError() { |
| 268 | return 0 |
| 269 | } |
| 270 | return length |
| 271 | } |
| 272 | |
| 273 | // ============================================================================ |
| 274 | // Typed Read Methods - Fastpath for codegen |
no test coverage detected