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

Function BufferOutOfBoundError

go/fory/errors.go:156–163  ·  view source on GitHub ↗

BufferOutOfBoundError creates a buffer out of bound error go:noinline

(offset, need, size int)

Source from the content-addressed store, hash-verified

154//
155//go:noinline
156func BufferOutOfBoundError(offset, need, size int) Error {
157 return panicIfEnabled(Error{
158 kind: ErrKindBufferOutOfBound,
159 offset: offset,
160 need: need,
161 size: size,
162 })
163}
164
165// TypeMismatchError creates a type mismatch error
166//

Callers 3

fillMethod · 0.85
discardFromReaderMethod · 0.85
SkipMethod · 0.85

Calls 1

panicIfEnabledFunction · 0.85

Tested by

no test coverage detected