we can silently pack these strings, i think

This commit is contained in:
DarthArgus
2016-12-17 19:57:18 +00:00
parent 852a7ee8a9
commit 41a1b7e40b
5 changed files with 1 additions and 11 deletions
@@ -29,7 +29,6 @@ namespace Base
#endif
#if defined (PASCAL_STRING)
#pragma message ("--- Packing pascal style strings ---")
void get(Base::ByteStream::ReadIterator& source, std::string& target)
{
unsigned int size = 0;
@@ -48,10 +47,9 @@ namespace Base
const unsigned int size = source.size();
put(target, size);
target.put(source.data(), size * sizeof (char));
}
}
#else
#pragma message ("--- Packing c style strings ---")
void get(ByteStream::ReadIterator & source, std::string & target)
{
target = reinterpret_cast<const char *>(source.getBuffer());
-2
View File
@@ -29,7 +29,6 @@ namespace Base
#endif
#if defined (PASCAL_STRING)
#pragma message ("--- Packing pascal style strings ---")
void get(Base::ByteStream::ReadIterator& source, std::string& target)
{
unsigned int size = 0;
@@ -51,7 +50,6 @@ namespace Base
}
#else
#pragma message ("--- Packing c style strings ---")
void get(ByteStream::ReadIterator & source, std::string & target)
{
target = reinterpret_cast<const char *>(source.getBuffer());
@@ -32,7 +32,6 @@ namespace Base
bool ByteStream::ms_reuseData = true;
#if defined (PASCAL_STRING)
#pragma message ("--- Packing pascal style strings ---")
void get(Base::ByteStream::ReadIterator& source, std::string& target)
{
unsigned int size = 0;
@@ -54,7 +53,6 @@ namespace Base
}
#else
#pragma message ("--- Packing c style strings ---")
void get(ByteStream::ReadIterator & source, std::string & target)
{
target = reinterpret_cast<const char *>(source.getBuffer());
@@ -29,7 +29,6 @@ namespace Base
#endif
#if defined (PASCAL_STRING)
#pragma message ("--- Packing pascal style strings ---")
void get(Base::ByteStream::ReadIterator& source, std::string& target)
{
unsigned int size = 0;
@@ -51,7 +50,6 @@ namespace Base
}
#else
#pragma message ("--- Packing c style strings ---")
void get(ByteStream::ReadIterator & source, std::string & target)
{
target = reinterpret_cast<const char *>(source.getBuffer());
@@ -32,7 +32,6 @@ namespace Base
bool ByteStream::ms_reuseData = true;
#if defined (PASCAL_STRING)
#pragma message ("--- Packing pascal style strings ---")
unsigned get(Base::ByteStream::ReadIterator& source, std::string& target)
{
unsigned int size = 0;
@@ -61,7 +60,6 @@ namespace Base
}
#else
#pragma message ("--- Packing c style strings ---")
unsigned get(ByteStream::ReadIterator & source, std::string & target)
{
target = reinterpret_cast<const char *>(source.getBuffer());