mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
a0ebaeaa6c
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. |
||
---|---|---|
.. | ||
primitive.go | ||
record.go | ||
stream.go | ||
varint_test.go | ||
varint.go |