BSDL Device Tree Compiler
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
dtc::stream_input_buffer Struct Reference
Inheritance diagram for dtc::stream_input_buffer:
dtc::input_buffer

Public Member Functions

 stream_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_bufferoperator++ ()
 
 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_buffernext_token ()
 
void parse_error (const char *msg)
 
void dump ()
 
template<>
bool consume_binary (uint8_t &out)
 

Public Attributes

std::vector< char > b
 

Additional Inherited Members

- Protected Attributes inherited from dtc::input_buffer
const char * buffer
 
size_t size
 

Detailed Description

Input buffer read from standard input. This is used for reading device tree blobs and source from standard input. It reads the entire input into malloc'd memory, so will be very slow for large inputs. DTS and DTB files are very rarely more than 10KB though, so this is probably not a problem.

Constructor & Destructor Documentation

dtc::stream_input_buffer::stream_input_buffer ( )
inline

Constructs a new buffer from the file passed in as a file descriptor.

Member Data Documentation

std::vector<char> dtc::stream_input_buffer::b

The buffer that will store the data read from the standard input.


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