CARLA
Loading...
Searching...
No Matches
util::buffer Namespace Reference

Classes

class  Buffer
 A piece of raw data. More...

Typedefs

using const_shared_buffer = std::shared_ptr<const Buffer>
using shared_buffer = std::shared_ptr<Buffer>

Functions

static std::string as_string (const Buffer &buf)
template<typename T>
static shared_buffer make (const T &buffer)
static shared_buffer make_empty (size_t size=0u)
shared_buffer make_random (size_t size)
std::string to_hex_string (const Buffer &buf, size_t length)

Typedef Documentation

◆ const_shared_buffer

using util::buffer::const_shared_buffer = std::shared_ptr<const Buffer>

Definition at line 22 of file test/Buffer.h.

◆ shared_buffer

using util::buffer::shared_buffer = std::shared_ptr<Buffer>

Definition at line 21 of file test/Buffer.h.

Function Documentation

◆ as_string()

std::string util::buffer::as_string ( const Buffer & buf)
inlinestatic

Definition at line 37 of file test/Buffer.h.

References as_string(), carla::Buffer::data(), and carla::Buffer::size().

Referenced by as_string().

◆ make()

template<typename T>
shared_buffer util::buffer::make ( const T & buffer)
inlinestatic

Definition at line 33 of file test/Buffer.h.

References make().

Referenced by make().

◆ make_empty()

shared_buffer util::buffer::make_empty ( size_t size = 0u)
inlinestatic

Definition at line 24 of file test/Buffer.h.

References make_empty().

Referenced by make_empty().

◆ make_random()

shared_buffer util::buffer::make_random ( size_t size)

Definition at line 14 of file test/Buffer.cpp.

References make_random().

Referenced by make_random(), TEST(), and TEST().

◆ to_hex_string()

std::string util::buffer::to_hex_string ( const Buffer & buf,
size_t length )

Definition at line 31 of file test/Buffer.cpp.

References carla::Buffer::data(), carla::Buffer::size(), and to_hex_string().

Referenced by carla::operator<<(), and to_hex_string().