net/protocol/Protocol.h
// get size of data size.
get size of data size.
get size of data size .
inline static uint8_t size_size(uint64_t size)
	{
		if (size < 253)
			return 1;
		else if (size <= max_uint16())
			return 1 + 2;
		else if (size <= max_uint32())
			return 1 + 4;
		return 1 + 8;
	}
inline static uint8_t size_size ( uint64_t size ) { if ( size < 253 ) return 1 ; else if ( size <= max_uint16 ( ) ) return 1 + 2 ; else if ( size <= max_uint32 ( ) ) return 1 + 4 ; return 1 + 8 ; }
get size of data size.
get size of data size .