Merge pull request #926 from rbalint/master

lib/ipc: Introduce writef_void(void*, ...)
This commit is contained in:
Povilas Kanapickas 2020-11-23 18:38:03 +02:00 committed by GitHub
commit 06951ea9f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -79,7 +79,7 @@ private:
const char* fmt, va_list); const char* fmt, va_list);
static UInt32 getLength(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 UInt32 eatLength(const char** fmt);
static void read(barrier::IStream*, void*, UInt32); static void read(barrier::IStream*, void*, UInt32);
}; };