lnd.xprv/tlv
Conner Fromknecht a0ebaeaa6c
tlv: zero alloc encoding for extended types
This commit adds concrete encoding methods for primitive integral types.
When external libs need to create custom encoders, this allows them to
do so without incurring an extra allocation on the heap. Previously, the
need to pass a pointer to the integer using an interface{} would cause
the argument to escape, which we avoid by having them copied directly.
2019-08-07 15:04:08 -07:00
..
primitive.go tlv: zero alloc encoding for extended types 2019-08-07 15:04:08 -07:00
record.go tlv/record: adds various tlv record constructors 2019-08-07 15:03:43 -07:00
stream.go tlv/stream: adds tlv stream encoding/decoding 2019-08-07 15:03:56 -07:00
varint_test.go tlv/varint_test: add tests vectors for custom Read/WriteVarInt 2019-08-07 15:03:18 -07:00
varint.go tlv/varint: add modified bitcoin varint 2019-08-07 15:03:05 -07:00