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

Function readKnownTypeInfoForSkip

go/fory/skip.go:223–232  ·  view source on GitHub ↗
(ctx *ReadContext, typeID uint32)

Source from the content-addressed store, hash-verified

221}
222
223func readKnownTypeInfoForSkip(ctx *ReadContext, typeID uint32) *TypeInfo {
224 typeInfo := ctx.TypeResolver().readTypeInfoWithTypeID(ctx.buffer, typeID, ctx.Err())
225 if ctx.HasError() {
226 return nil
227 }
228 if typeInfo == nil {
229 ctx.SetError(DeserializationErrorf("cannot skip type %d: type info not found", typeID))
230 }
231 return typeInfo
232}
233
234// skipCollection skips a collection (list/set) value
235// Uses context error state for deferred error checking.

Callers 4

skipCollectionFunction · 0.85
skipMapFunction · 0.85
skipValueFunction · 0.85

Calls 6

DeserializationErrorfFunction · 0.85
TypeResolverMethod · 0.45
ErrMethod · 0.45
HasErrorMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected