mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-03 03:16:01 -04:00
Added missing template<>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
|
||||
template<>
|
||||
void AutoDeltaPackedMap<int, NetworkId>::pack(ByteStream & target, const std::string & buffer)
|
||||
{
|
||||
char temp[200];
|
||||
@@ -46,6 +46,7 @@ namespace Archive
|
||||
|
||||
// ======================================================================
|
||||
|
||||
template<>
|
||||
void AutoDeltaPackedMap<int, NetworkId>::unpack(ReadIterator & source, std::string & buffer)
|
||||
{
|
||||
char temp[200];
|
||||
|
||||
@@ -180,53 +180,63 @@ namespace Archive
|
||||
// ======================================================================
|
||||
// pack-to-string functions for specific types
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<int, float>::pack(ByteStream & target, const std::string & buffer)
|
||||
{
|
||||
internal_pack(target, buffer, "%i %f");
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<int, float>::unpack(ReadIterator & source, std::string & buffer)
|
||||
{
|
||||
internal_unpack(source, buffer, "%i %.2f:");
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<int, int>::pack(ByteStream & target, const std::string & buffer)
|
||||
{
|
||||
internal_pack(target, buffer, "%i %i");
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<int, int>::unpack(ReadIterator & source, std::string & buffer)
|
||||
{
|
||||
internal_unpack(source, buffer, "%i %i:");
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<int, unsigned long>::pack(ByteStream & target, const std::string & buffer)
|
||||
{
|
||||
internal_pack(target, buffer, "%i %u");
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<int, unsigned long>::unpack(ReadIterator & source, std::string & buffer)
|
||||
{
|
||||
internal_unpack(source, buffer, "%i %u:");
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<unsigned long, unsigned __int64>::pack(ByteStream & target, const std::string & buffer)
|
||||
{
|
||||
internal_pack(target, buffer, "%lu %I64u");
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<unsigned long, unsigned __int64>::unpack(ReadIterator & source, std::string & buffer)
|
||||
{
|
||||
internal_unpack(source, buffer, "%lu %I64u:");
|
||||
}
|
||||
|
||||
#else
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<unsigned long, unsigned long long int>::pack(ByteStream & target, const std::string & buffer)
|
||||
{
|
||||
internal_pack(target, buffer, "%lu %llu");
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void AutoDeltaPackedMap<unsigned long, unsigned long long int>::unpack(ReadIterator & source, std::string & buffer)
|
||||
{
|
||||
internal_unpack(source, buffer, "%lu %llu:");
|
||||
|
||||
Reference in New Issue
Block a user