Tawara  0.1.0
Namespaces | Functions
ebml_int.h File Reference
#include <cstddef>
#include <istream>
#include <ostream>
#include <stdint.h>
#include <vector>
Include dependency graph for ebml_int.h:

Go to the source code of this file.

Namespaces

 tawara
 
 tawara::ebml_int
 Functions for managing integers coded for EBML.
 

Functions

std::streamsize tawara::ebml_int::size_u (uint64_t integer)
 Get the size of an unsigned integer after encoding. More...
 
std::streamsize tawara::ebml_int::size_s (int64_t integer)
 Get the size of a signed integer after encoding. More...
 
std::vector< char > tawara::ebml_int::encode_u (uint64_t integer)
 Encode an unsigned integer into a buffer. More...
 
std::vector< char > tawara::ebml_int::encode_s (int64_t integer)
 Encode a signed integer into a buffer. More...
 
std::streamsize tawara::ebml_int::write_u (uint64_t integer, std::ostream &output)
 Encode and write an unsigned integer into a byte stream. More...
 
std::streamsize tawara::ebml_int::write_s (int64_t integer, std::ostream &output)
 Encode and write a signed integer into a byte stream. More...
 
uint64_t tawara::ebml_int::decode_u (std::vector< char > const &buffer)
 Decode an unsigned integer from a buffer. More...
 
int64_t tawara::ebml_int::decode_s (std::vector< char > const &buffer)
 Decode a signed integer from a buffer. More...
 
uint64_t tawara::ebml_int::read_u (std::istream &input, std::streamsize n)
 Read and decode an unsigned integer from a byte stream. More...
 
int64_t tawara::ebml_int::read_s (std::istream &input, std::streamsize n)
 Read and decode a signed integer from a byte stream. More...