(ctx *ReadContext, size uint64)
| 23 | ) |
| 24 | |
| 25 | func skipSizedBytes(ctx *ReadContext, size uint64) { |
| 26 | if size > uint64(MaxInt) { |
| 27 | ctx.SetError(DeserializationErrorf("skip byte length exceeds supported int range: %d", size)) |
| 28 | return |
| 29 | } |
| 30 | ctx.buffer.Skip(int(size), ctx.Err()) |
| 31 | } |
| 32 | |
| 33 | // SkipFieldValue skips a field value in compatible mode when the field doesn't exist |
| 34 | // or is incompatible with the local type. |