lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
#include <bytes.hpp>
Public Member Functions | |
ByteList ()=delete | |
ByteList (char *ptr, size_t len, size_t capacity) | |
ByteList (const ByteList &)=delete | |
ByteList & | operator= (ByteList const &)=delete |
ByteList (ByteList &&) | |
ByteList & | operator= (ByteList &&) |
~ByteList () | |
Static Public Member Functions | |
static ByteList | Owned (char *s, size_t len) |
static ByteList | Copied (const char *s, size_t len) |
Constructs a ByteList by copying given pointer. More... | |
Public Attributes | |
char * | ptr |
size_t | capacity |
size_t | len |
Representation of a Vec<u8>. capacity
doesn't matter.
|
delete |
lib_ruby_parser::ByteList::ByteList | ( | char * | ptr, |
size_t | len, | ||
size_t | capacity | ||
) |
|
delete |
lib_ruby_parser::ByteList::ByteList | ( | ByteList && | ) |
lib_ruby_parser::ByteList::~ByteList | ( | ) |
|
static |
Constructs a ByteList
by copying given pointer.
|
static |
Constructs an "owned" version of ByteList
, takes ownership of the given pointer.
size_t lib_ruby_parser::ByteList::capacity |
size_t lib_ruby_parser::ByteList::len |
char* lib_ruby_parser::ByteList::ptr |