Tide 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

namespace  tide
namespace  tide::ebml_int
 

Functions for managing integers coded for EBML.


Functions

std::streamsize tide::ebml_int::size_u (uint64_t integer)
 Get the size of an unsigned integer after encoding.
std::streamsize tide::ebml_int::size_s (int64_t integer)
 Get the size of a signed integer after encoding.
std::vector< char > tide::ebml_int::encode_u (uint64_t integer)
 Encode an unsigned integer into a buffer.
std::vector< char > tide::ebml_int::encode_s (int64_t integer)
 Encode a signed integer into a buffer.
std::streamsize tide::ebml_int::write_u (uint64_t integer, std::ostream &output)
 Encode and write an unsigned integer into a byte stream.
std::streamsize tide::ebml_int::write_s (int64_t integer, std::ostream &output)
 Encode and write a signed integer into a byte stream.
uint64_t tide::ebml_int::decode_u (std::vector< char > const &buffer)
 Decode an unsigned integer from a buffer.
int64_t tide::ebml_int::decode_s (std::vector< char > const &buffer)
 Decode a signed integer from a buffer.
uint64_t tide::ebml_int::read_u (std::istream &input, std::streamsize n)
 Read and decode an unsigned integer from a byte stream.
int64_t tide::ebml_int::read_s (std::istream &input, std::streamsize n)
 Read and decode a signed integer from a byte stream.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines