Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesRange ¶
func SubsliceOffset ¶
Types ¶
type TypeID ¶
typeID is used as key in encoder and decoder caches to enable using the optimize runtime.mapaccess2_fast64 function instead of the more expensive lookup if we were to use reflect.Type as map key.
typeID holds the pointer to the reflect.Type value, which is unique in the program.
https://github.com/segmentio/encoding/blob/master/json/codec.go#L59-L61
func MakeTypeID ¶
Click to show internal directories.
Click to hide internal directories.