LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
locked_buffer_t Struct Reference

locketd_buffer_t is the character-level buffer shared between the source file reader and the tokenizer. More...

#include <deeplima/utils/locked_buffer.h>

Public Member Functions

 locked_buffer_t ()
 
 ~locked_buffer_t ()
 
 locked_buffer_t (const locked_buffer_t &other)
 
locked_buffer_t & operator= (const locked_buffer_t &)=delete
 
uint8_t * end () const
 
bool locked () const
 
void lock ()
 
void unlock ()
 
void set_read_start (const char *new_start)
 

Public Attributes

uint8_t * m_data = nullptr
 
uint32_t m_len = 0
 
uint32_t m_lock_count = 0
 
const char * m_char_aligned_data = nullptr
 

Detailed Description

locketd_buffer_t is the character-level buffer shared between the source file reader and the tokenizer.

Definition at line 21 of file locked_buffer.h.

Constructor & Destructor Documentation

◆ locked_buffer_t() [1/2]

locked_buffer_t::locked_buffer_t ( )
inline

Definition at line 23 of file locked_buffer.h.

◆ ~locked_buffer_t()

locked_buffer_t::~locked_buffer_t ( )
inline

Definition at line 33 of file locked_buffer.h.

◆ locked_buffer_t() [2/2]

locked_buffer_t::locked_buffer_t ( const locked_buffer_t &  other)
inline

Definition at line 41 of file locked_buffer.h.

Member Function Documentation

◆ end()

uint8_t * locked_buffer_t::end ( ) const
inline

Definition at line 53 of file locked_buffer.h.

◆ lock()

void locked_buffer_t::lock ( )
inline

Definition at line 67 of file locked_buffer.h.

◆ locked()

bool locked_buffer_t::locked ( ) const
inline

Definition at line 62 of file locked_buffer.h.

◆ operator=()

locked_buffer_t & locked_buffer_t::operator= ( const locked_buffer_t &  )
delete

◆ set_read_start()

void locked_buffer_t::set_read_start ( const char *  new_start)
inline

Definition at line 84 of file locked_buffer.h.

◆ unlock()

void locked_buffer_t::unlock ( )
inline

Definition at line 74 of file locked_buffer.h.

Member Data Documentation

◆ m_char_aligned_data

const char* locked_buffer_t::m_char_aligned_data = nullptr

Definition at line 95 of file locked_buffer.h.

◆ m_data

uint8_t* locked_buffer_t::m_data = nullptr

Definition at line 92 of file locked_buffer.h.

◆ m_len

uint32_t locked_buffer_t::m_len = 0

Definition at line 93 of file locked_buffer.h.

◆ m_lock_count

uint32_t locked_buffer_t::m_lock_count = 0

Definition at line 94 of file locked_buffer.h.


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