MCPcopy
hub / github.com/protocolbuffers/protobuf-go / Skip

Method Skip

internal/protolazy/bufferreader.go:329–335  ·  view source on GitHub ↗

skip skips the specified number of bytes

(n int)

Source from the content-addressed store, hash-verified

327
328// skip skips the specified number of bytes
329func (b *BufferReader) Skip(n int) (err error) {
330 if len(b.Buf) < b.Pos+n {
331 return io.ErrUnexpectedEOF
332 }
333 b.Pos += n
334 return
335}
336
337// skipFixed64 skips a fixed64
338func (b *BufferReader) SkipFixed64() (err error) {

Callers 15

SkipValueMethod · 0.95
SkipGroupMethod · 0.95
SkipFixed64Method · 0.95
SkipFixed32Method · 0.95
SkipBytesMethod · 0.95
buildIndexFunction · 0.95
TestMessageSetLazyFunction · 0.45
TestExtensionLazyFunction · 0.45
TestExtensionIntegerLazyFunction · 0.45

Calls

no outgoing calls

Tested by 11

TestMessageSetLazyFunction · 0.36
TestExtensionLazyFunction · 0.36
TestExtensionIntegerLazyFunction · 0.36
TestExtensionBinaryLazyFunction · 0.36
TestExtensionGroupLazyFunction · 0.36
TestUnsafeAssumptionsFunction · 0.36
TestFunction · 0.36