Scid  4.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
ByteBuffer Class Reference

#include <bytebuf.h>

Public Member Functions

 ByteBuffer (size_t length)
 
 ~ByteBuffer ()
 
void ProvideExternal (byte *data, size_t length)
 
errorT Status ()
 
size_t GetByteCount ()
 
void BackToStart ()
 
void Skip (size_t value)
 
byte GetByte ()
 
void GetFixedString (char *str, size_t length)
 
void GetTerminatedString (char **str)
 
const bytegetData ()
 
void Empty ()
 
void PutByte (byte value)
 
void PutFixedString (const char *str, size_t length)
 
void PutTerminatedString (const char *str)
 

Detailed Description

Definition at line 25 of file bytebuf.h.

Constructor & Destructor Documentation

◆ ByteBuffer()

ByteBuffer::ByteBuffer ( size_t  length)
inline

Definition at line 46 of file bytebuf.h.

◆ ~ByteBuffer()

ByteBuffer::~ByteBuffer ( )
inline

Definition at line 47 of file bytebuf.h.

Member Function Documentation

◆ BackToStart()

void ByteBuffer::BackToStart ( )

Definition at line 37 of file bytebuf.cpp.

◆ Empty()

void ByteBuffer::Empty ( )

Definition at line 23 of file bytebuf.cpp.

◆ GetByte()

byte ByteBuffer::GetByte ( )
inline

Definition at line 62 of file bytebuf.h.

◆ GetByteCount()

size_t ByteBuffer::GetByteCount ( )
inline

Definition at line 59 of file bytebuf.h.

◆ getData()

const byte* ByteBuffer::getData ( )
inline

Definition at line 71 of file bytebuf.h.

◆ GetFixedString()

void ByteBuffer::GetFixedString ( char *  str,
size_t  length 
)

Definition at line 80 of file bytebuf.cpp.

◆ GetTerminatedString()

void ByteBuffer::GetTerminatedString ( char **  str)

Definition at line 117 of file bytebuf.cpp.

◆ ProvideExternal()

void ByteBuffer::ProvideExternal ( byte data,
size_t  length 
)

Definition at line 52 of file bytebuf.cpp.

◆ PutByte()

void ByteBuffer::PutByte ( byte  value)
inline

Definition at line 80 of file bytebuf.h.

◆ PutFixedString()

void ByteBuffer::PutFixedString ( const char *  str,
size_t  length 
)

Definition at line 98 of file bytebuf.cpp.

◆ PutTerminatedString()

void ByteBuffer::PutTerminatedString ( const char *  str)

Definition at line 136 of file bytebuf.cpp.

◆ Skip()

void ByteBuffer::Skip ( size_t  value)

Definition at line 66 of file bytebuf.cpp.

◆ Status()

errorT ByteBuffer::Status ( )
inline

Definition at line 58 of file bytebuf.h.


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