Merge pull request #926 from rbalint/master
lib/ipc: Introduce writef_void(void*, ...)
This commit is contained in:
commit
06951ea9f0
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue