mirror of
https://github.com/GOSTSec/poolserver
synced 2025-03-13 05:51:37 +00:00
22 lines
370 B
C++
22 lines
370 B
C++
#ifndef BITCOIN_VARINT_H_
|
|
#define BITCOIN_VARINT_H_
|
|
|
|
#include "Common.h"
|
|
#include "ByteBuffer.h"
|
|
|
|
namespace Bitcoin
|
|
{
|
|
class VarInt
|
|
{
|
|
public:
|
|
VarInt(uint64 data) : value(data) {}
|
|
uint64 value;
|
|
|
|
friend ByteBuffer& operator<<(ByteBuffer& a, VarInt& b);
|
|
};
|
|
|
|
ByteBuffer& operator<<(ByteBuffer& a, VarInt& b);
|
|
}
|
|
|
|
#endif
|