lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::ByteList Class Reference

#include <bytes.hpp>

Public Member Functions

 ByteList ()=delete
 
 ByteList (char *ptr, size_t len, size_t capacity)
 
 ByteList (const ByteList &)=delete
 
ByteListoperator= (ByteList const &)=delete
 
 ByteList (ByteList &&)
 
ByteListoperator= (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
 

Detailed Description

Representation of a Vec<u8>. capacity doesn't matter.

Constructor & Destructor Documentation

◆ ByteList() [1/4]

lib_ruby_parser::ByteList::ByteList ( )
delete

◆ ByteList() [2/4]

lib_ruby_parser::ByteList::ByteList ( char *  ptr,
size_t  len,
size_t  capacity 
)

◆ ByteList() [3/4]

lib_ruby_parser::ByteList::ByteList ( const ByteList )
delete

◆ ByteList() [4/4]

lib_ruby_parser::ByteList::ByteList ( ByteList &&  )

◆ ~ByteList()

lib_ruby_parser::ByteList::~ByteList ( )

Member Function Documentation

◆ Copied()

static ByteList lib_ruby_parser::ByteList::Copied ( const char *  s,
size_t  len 
)
static

Constructs a ByteList by copying given pointer.

◆ operator=() [1/2]

ByteList& lib_ruby_parser::ByteList::operator= ( ByteList &&  )

◆ operator=() [2/2]

ByteList& lib_ruby_parser::ByteList::operator= ( ByteList const &  )
delete

◆ Owned()

static ByteList lib_ruby_parser::ByteList::Owned ( char *  s,
size_t  len 
)
static

Constructs an "owned" version of ByteList, takes ownership of the given pointer.

Member Data Documentation

◆ capacity

size_t lib_ruby_parser::ByteList::capacity

◆ len

size_t lib_ruby_parser::ByteList::len

◆ ptr

char* lib_ruby_parser::ByteList::ptr

The documentation for this class was generated from the following file: