MCPcopy
hub / github.com/openacid/slim / GetEncodedSize

Method GetEncodedSize

encode/encoder.go:39–39  ·  view source on GitHub ↗

GetEncodedSize returns size of the encoded value. Encoded element may be var-length. This function is used to determine element size without the need of encoding it.

([]byte)

Source from the content-addressed store, hash-verified

37 // This function is used to determine element size without the need of
38 // encoding it.
39 GetEncodedSize([]byte) int
40}
41
42// EncoderOf returns a `Encoder` implementation for type of `e`

Callers 6

TestTypeEncoderDecodeFunction · 0.65
InitEltsMethod · 0.65
GetMethod · 0.65
getIthLeafMethod · 0.65
getIthLeafBytesMethod · 0.65

Implementers 13

U16encode/int.go
U32encode/int.go
U64encode/int.go
I16encode/int.go
I32encode/int.go
I64encode/int.go
String16encode/encoder.go
Intencode/nativeint.go
TypeEncoderencode/type_encoder.go
Bytesencode/bytes.go
I8encode/int8.go
Dummyencode/dummy.go

Calls

no outgoing calls

Tested by 1

TestTypeEncoderDecodeFunction · 0.52