BSDL Device Tree Compiler
|
Public Member Functions | |
mmap_input_buffer (int fd) | |
virtual | ~mmap_input_buffer () |
Public Member Functions inherited from dtc::input_buffer | |
virtual | ~input_buffer () |
input_buffer () | |
input_buffer (const char *b, size_t s) | |
input_buffer | buffer_from_offset (size_t offset, size_t s=0) |
bool | empty () |
char | operator* () |
char | operator[] (int offset) |
input_buffer & | operator++ () |
operator const char * () | |
bool | consume (char c) |
bool | consume (const char *str) |
bool | consume_integer (long long &outInt) |
template<typename T > | |
bool | consume_binary (T &out) |
bool | consume_hex_byte (uint8_t &outByte) |
input_buffer & | next_token () |
void | parse_error (const char *msg) |
void | dump () |
template<> | |
bool | consume_binary (uint8_t &out) |
Additional Inherited Members | |
Protected Attributes inherited from dtc::input_buffer | |
const char * | buffer |
size_t | size |
Subclass of input_buffer that mmap()s a file and owns the resulting memory. When this object is destroyed, the memory is unmapped.
|
inline |
Constructs a new buffer from the file passed in as a file descriptor.
|
inlinevirtual |
Unmaps the buffer, if one exists.