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

Function skipSizedBytes

go/fory/skip.go:25–31  ·  view source on GitHub ↗
(ctx *ReadContext, size uint64)

Source from the content-addressed store, hash-verified

23)
24
25func 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.

Callers 1

skipValueFunction · 0.85

Calls 5

DeserializationErrorfFunction · 0.85
uint64Function · 0.50
SetErrorMethod · 0.45
SkipMethod · 0.45
ErrMethod · 0.45

Tested by

no test coverage detected