lib/ipc: Introduce writef_void(void*, ...)

to fix ambiguity with writef(barrier::IStream*, ...)
This commit is contained in:
Balint Reczey 2020-10-22 22:00:18 +02:00
parent fc045fc793
commit bd0c671fcc
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ ProtocolUtil::vwritef(barrier::IStream* stream,
// fill buffer
UInt8* buffer = new UInt8[size];
writef(buffer, fmt, args);
writef_void(buffer, fmt, args);
try {
// write buffer
@ -339,7 +339,7 @@ ProtocolUtil::getLength(const char* fmt, va_list args)
}
void
ProtocolUtil::writef(void* buffer, const char* fmt, va_list args)
ProtocolUtil::writef_void(void* buffer, const char* fmt, va_list args)
{
UInt8* dst = static_cast<UInt8*>(buffer);

View File

@ -79,7 +79,7 @@ private:
const char* fmt, va_list);
static UInt32 getLength(const char* fmt, va_list);
static void writef(void*, const char* fmt, va_list);
static void writef_void(void*, const char* fmt, va_list);
static UInt32 eatLength(const char** fmt);
static void read(barrier::IStream*, void*, UInt32);
};