Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/fory
/ WriterIndex
Method
WriterIndex
go/fory/buffer.go:468–470 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
466
}
467
468
func
(b *ByteBuffer) WriterIndex() int {
469
return
b.writerIndex
470
}
471
472
// Bytes returns all written bytes from the buffer (from 0 to writerIndex).
473
func
(b *ByteBuffer) Bytes() []byte {
Callers
15
TestSkipPrimitiveConsumesExactEncoding
Function · 0.95
TestNamedStructRegistrationCoversPointer
Function · 0.95
TestTypeDefFieldCountOOMPanic
Function · 0.95
TestTypeDefRejectsReservedGlobalHeaderBits
Function · 0.95
TestEnumReadConsumesRegisteredTypeInfo
Function · 0.95
TestIdEnumDoesNotUseTypeDefMeta
Function · 0.95
TestNamedEnumReadConsumesNamedTypeInfo
Function · 0.95
testBuffer
Function · 0.95
testBufferVar
Function · 0.95
testMurmurHash3
Function · 0.95
checkVarint
Function · 0.80
checkVarintWrite
Function · 0.80
Calls
no outgoing calls
Tested by
9
TestSkipPrimitiveConsumesExactEncoding
Function · 0.76
TestNamedStructRegistrationCoversPointer
Function · 0.76
TestTypeDefFieldCountOOMPanic
Function · 0.76
TestTypeDefRejectsReservedGlobalHeaderBits
Function · 0.76
TestEnumReadConsumesRegisteredTypeInfo
Function · 0.76
TestIdEnumDoesNotUseTypeDefMeta
Function · 0.76
TestNamedEnumReadConsumesNamedTypeInfo
Function · 0.76
checkVarint
Function · 0.64
checkVarintWrite
Function · 0.64