Source File
reader_skip.go
Belonging Package
github.com/hamba/avro/v2
package avro// SkipNBytes skips the given number of bytes in the reader.func ( *Reader) ( int) {:= 0for < {if .head == .tail {if !.loadMore() {return}}if +.tail-.head < {+= .tail - .head.head = .tailcontinue}.head += -+= -}}// SkipBool skips a Bool in the reader.func ( *Reader) () {_ = .readByte()}// SkipInt skips an Int in the reader.func ( *Reader) () {var intfor .Error == nil && < maxIntBufSize {:= .readByte()if &0x80 == 0 {break}++}}// SkipLong skips a Long in the reader.func ( *Reader) () {var intfor .Error == nil && < maxLongBufSize {:= .readByte()if &0x80 == 0 {break}++}}// SkipFloat skips a Float in the reader.func ( *Reader) () {.SkipNBytes(4)}// SkipDouble skips a Double in the reader.func ( *Reader) () {.SkipNBytes(8)}// SkipString skips a String in the reader.func ( *Reader) () {:= .ReadLong()if <= 0 {return}.SkipNBytes(int())}// SkipBytes skips Bytes in the reader.func ( *Reader) () {:= .ReadLong()if <= 0 {return}.SkipNBytes(int())}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |