You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
310 B
C++

1 month ago
#include "stdafx.h"
#include "NativeStream.h"
void BufferStream::Write(const void* data, size_t size)
{
if (data == nullptr || size == 0)
{
return;
}
const char* p = static_cast<const char*>(data);
m_buffer.append(p, size);
}
void BufferStream::Complete()
{
// 缓冲已完整,无需额外操作
}