BSDL Device Tree Compiler
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
dtc::dtb::binary_writer Class Reference
Inheritance diagram for dtc::dtb::binary_writer:
dtc::dtb::output_writer

Public Member Functions

virtual void write_label (string name)
 
virtual void write_comment (string name)
 
virtual void write_string (string name)
 
virtual void write_data (uint8_t v)
 
virtual void write_data (uint32_t v)
 
virtual void write_data (uint64_t v)
 
virtual void write_to_file (int fd)
 
virtual uint32_t size ()
 
- Public Member Functions inherited from dtc::dtb::output_writer
void write_token (token_type t)
 
void write_data (byte_buffer b)
 

Detailed Description

Binary file writer. This class is responsible for writing the DTB output directly in blob format.

Member Function Documentation

virtual uint32_t dtc::dtb::binary_writer::size ( )
inlinevirtual

Returns the number of bytes.

Implements dtc::dtb::output_writer.

virtual void dtc::dtb::binary_writer::write_comment ( string  name)
inlinevirtual

Comments are ignored by the binary writer.

Implements dtc::dtb::output_writer.

virtual void dtc::dtb::binary_writer::write_data ( uint8_t  )
inlinevirtual

Writes a single 8-bit value.

Implements dtc::dtb::output_writer.

virtual void dtc::dtb::binary_writer::write_data ( uint32_t  )
inlinevirtual

Writes a single 32-bit value. The value is written in big-endian format, but should be passed in the host's native endian.

Implements dtc::dtb::output_writer.

virtual void dtc::dtb::binary_writer::write_data ( uint64_t  )
inlinevirtual

Writes a single 64-bit value. The value is written in big-endian format, but should be passed in the host's native endian.

Implements dtc::dtb::output_writer.

virtual void dtc::dtb::binary_writer::write_label ( string  name)
inlinevirtual

The binary format does not support labels, so this method does nothing.

Implements dtc::dtb::output_writer.

virtual void dtc::dtb::binary_writer::write_string ( string  name)
inlinevirtual

Writes a string. A nul terminator is implicitly added.

Implements dtc::dtb::output_writer.

virtual void dtc::dtb::binary_writer::write_to_file ( int  fd)
inlinevirtual

Writes the collected output to the specified file descriptor.

Implements dtc::dtb::output_writer.


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