()
| 279 | } |
| 280 | |
| 281 | func (d *Decbuf) Byte() byte { |
| 282 | if d.E != nil { |
| 283 | return 0 |
| 284 | } |
| 285 | if len(d.B) < 1 { |
| 286 | d.E = ErrInvalidSize |
| 287 | return 0 |
| 288 | } |
| 289 | x := d.B[0] |
| 290 | d.B = d.B[1:] |
| 291 | return x |
| 292 | } |
| 293 | |
| 294 | func (d *Decbuf) ConsumePadding() { |
| 295 | if d.E != nil { |
no outgoing calls