/// <summary> /// Write variable encoded 64-bit unsigned integer /// </summary> public void WriteVarUInt64(ulong value) { if (position + IntegerHelper.MaxBytesVarInt64 > length) { Grow(IntegerHelper.MaxBytesVarInt64); } position = IntegerHelper.EncodeVarUInt64(buffer, value, position); }