[+] bool ByteBuffer::WriteTagged(T &in) (...for non-const ::Serialize)
This commit is contained in:
parent
ca3bded0d4
commit
fb97c282a2
@ -538,6 +538,9 @@ namespace Aurora::Memory
|
||||
template<typename T>
|
||||
bool WriteTagged(const T &in);
|
||||
|
||||
template<typename T>
|
||||
bool WriteTagged(T &in);
|
||||
|
||||
template<typename T>
|
||||
bool ReadTagged(T &out);
|
||||
|
||||
|
@ -453,6 +453,13 @@ namespace Aurora::Memory
|
||||
return Write(in);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
bool ByteBuffer::WriteTagged(T &in)
|
||||
{
|
||||
Write(__detail::TypeToID<T>());
|
||||
return Write(in);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
bool ByteBuffer::ReadTagged(T &out)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user