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

Method Decode

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

Read byte stream and convert it back to typed data.

([]byte)

Source from the content-addressed store, hash-verified

27
28 // Read byte stream and convert it back to typed data.
29 Decode([]byte) (int, interface{})
30
31 // GetSize returns the size in byte after encoding v.
32 // If v is of type this encoder can not encode, it panics.

Callers 5

TestTypeEncoderDecodeFunction · 0.65
GetMethod · 0.65
getIthLeafMethod · 0.65
getLabelsMethod · 0.65
getInnerBMMethod · 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