#include <netutil.h>
Public Methods | |
Decoder () | |
~Decoder () | |
Decoder (const void *buf, int maxn) | |
void | reset (const void *buf, int maxn) |
unsigned char | get8 () |
uint16 | get16 () |
uint32 | get32 () |
uint64 | get64 () |
float | getfloat () |
double | getdouble () |
void | getn (void *mem, int n) |
void | getcn (void *mem, int c, int n) |
void | gets (void *mem, int n) |
void | skip (int n) |
unsigned char const * | ptr () |
bool | get_varint32 (uint32 *v) |
bool | get_varint64 (uint64 *v) |
bool | get_varsigned32 (int32 *v) |
int | pos () const |
int | avail () const |
Private Attributes | |
const unsigned char * | orig_ |
const unsigned char * | buf_ |
const unsigned char * | limit_ |
|
|
|
|
|
|
|
Definition at line 184 of file netutil.h. Referenced by ReposReader::AtEnd(), ReposReader::ReadByte(), ReposReader::ReadCharsOnly(), ReposReader::ReadFixedUint32(), ReposReader::ReadInt(), ReposReader::ReadVarUint32(), and ReposReader::RefillBuf(). |
|
|
|
Definition at line 356 of file netutil.h. Referenced by ReposReader::ReadFixedUint32(). |
|
|
|
Definition at line 344 of file netutil.h. References buf_. Referenced by ReposReader::ReadByte(). |
|
Definition at line 38 of file netutil.cc. References buf_, Encoder::kVarintMax32, limit_, ptr(), and uint32. Referenced by get_varsigned32(), and ReposReader::ReadVarUint32(). |
|
Definition at line 93 of file netutil.cc. |
|
Definition at line 217 of file netutil.h. References get_varint32(), int32, and uint32. Referenced by ReposReader::ReadInt(). |
|
Definition at line 193 of file netutil.h. References buf_, NULL, and ptr(). Referenced by gets(). |
|
Definition at line 382 of file netutil.h. References buf_. |
|
Definition at line 375 of file netutil.h. References buf_. |
|
Definition at line 188 of file netutil.h. References buf_. Referenced by ReposReader::ReadCharsOnly(). |
|
|
|
|
|
Definition at line 213 of file netutil.h. References buf_. Referenced by get_varint32(), and getcn(). |
|
Definition at line 175 of file netutil.h. References buf_, limit_, and orig_. Referenced by ReposReader::RefillBuf(). |
|
Definition at line 209 of file netutil.h. References buf_. |
|
Definition at line 117 of file netutil.h. Referenced by avail(), Decoder(), get16(), get32(), get64(), get8(), get_varint32(), get_varint64(), getcn(), getdouble(), getfloat(), getn(), gets(), pos(), ptr(), reset(), and skip(). |
|
Definition at line 118 of file netutil.h. Referenced by avail(), Decoder(), get_varint32(), get_varint64(), gets(), and reset(). |
|
|