public int Serialize(InventoryVector typeInstance, int protocolVersion, IBufferWriter <byte> writer, ProtocolTypeSerializerOptions?options = null)
        {
            int size = 0;

            size += writer.WriteUInt(typeInstance.Type);
            size += writer.WriteWithSerializer(typeInstance.Hash, protocolVersion, _uInt256Serializator);

            return(size);
        }