Make WriteVarInt generic like ReadVarInt
This commit is contained in:
parent
4f810153e6
commit
8563f6c96f
|
@ -46,7 +46,8 @@ namespace Feather
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void WriteVarInt(int32_t value)
|
template <typename Int = int32_t>
|
||||||
|
inline void WriteVarInt(Int value)
|
||||||
{
|
{
|
||||||
do {
|
do {
|
||||||
uint8_t temp = uint8_t(value & 0b01111111);
|
uint8_t temp = uint8_t(value & 0b01111111);
|
||||||
|
|
Loading…
Reference in New Issue