Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Private Attributes | List of all members
CircularBufferCompressor Class Reference

#include <CircularBufferCompressor.h>

Collaboration diagram for CircularBufferCompressor:
Collaboration graph
[legend]

Public Member Functions

Compression::Result Compress ()
 
ContiguousByteBufferView GetView () const
 
void ReadFrom (cByteBuffer &Buffer)
 
void ReadFrom (cByteBuffer &Buffer, size_t Size)
 

Private Attributes

Compression::Compressor m_Compressor
 
std::basic_string< std::byte > m_ContiguousIntermediate
 

Detailed Description

Definition at line 16 of file CircularBufferCompressor.h.

Member Function Documentation

◆ Compress()

Compression::Result CircularBufferCompressor::Compress ( )

Definition at line 19 of file CircularBufferCompressor.cpp.

◆ GetView()

ContiguousByteBufferView CircularBufferCompressor::GetView ( ) const

Definition at line 10 of file CircularBufferCompressor.cpp.

◆ ReadFrom() [1/2]

void CircularBufferCompressor::ReadFrom ( cByteBuffer Buffer)

Definition at line 28 of file CircularBufferCompressor.cpp.

◆ ReadFrom() [2/2]

void CircularBufferCompressor::ReadFrom ( cByteBuffer Buffer,
size_t  Size 
)

Definition at line 37 of file CircularBufferCompressor.cpp.

Member Data Documentation

◆ m_Compressor

Compression::Compressor CircularBufferCompressor::m_Compressor
private

Definition at line 28 of file CircularBufferCompressor.h.

◆ m_ContiguousIntermediate

std::basic_string<std::byte> CircularBufferCompressor::m_ContiguousIntermediate
private

Definition at line 29 of file CircularBufferCompressor.h.


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