EmBencode
Implementation of the Bencode serialisation format for embedded microcontrollers.
 All Classes Files Functions Pages
EmBenPack Class Reference

Public Member Functions

 EmBenPack (char *ptr, uint8_t len)
 
uint8_t fill () const
 
void reset ()
 
void push (const char *str)
 
void push (const void *ptr, uint8_t len)
 
void push (long val)
 
void startList ()
 
void endList ()
 
void startDict ()
 
void endDict ()
 
void pushMarker ()
 

Protected Member Functions

void PushCount (uint32_t num, uint8_t flag=0x80)
 
void PushEnd ()
 
void PushChar (char ch)
 

Protected Attributes

char * buf
 
uint8_t limit
 
uint8_t next
 

Member Function Documentation

void EmBenPack::push ( long  val)
inline
Bug:
this currently only works for longs up to 30 bits

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