Buffer
constructor(data, size) [Buffer class]
Construct a buffer from a pointer (data
) and size
.
// PROTOTYPE
Buffer(const char* data, size_t size)
The buffer contains a copy of the data in a newly allocated block of memory. The source data does not need to be null-terminated and can contain arbitrary binary data.