xo-tokenizer2: use xo-arena DCircularBuffer to buffer input line
This commit is contained in:
parent
770879aa68
commit
5e771a99ec
2 changed files with 4 additions and 2 deletions
|
|
@ -58,8 +58,10 @@ namespace xo {
|
|||
size_type page_z,
|
||||
size_type buffer_align_z,
|
||||
span_type reserved_range);
|
||||
#ifdef NOT_YET
|
||||
/** constructor */
|
||||
DCircularBuffer(const CircularBufferConfig & config);
|
||||
#endif
|
||||
/** non-copyable **/
|
||||
DCircularBuffer(const DCircularBuffer & other) = delete;
|
||||
/** move ctor **/
|
||||
|
|
@ -107,7 +109,7 @@ namespace xo {
|
|||
* If buffer memory exhausted, may copy a prefix of @p r.
|
||||
* In that case returns the remaining suffix of @p r.
|
||||
**/
|
||||
span_type append(span_type r);
|
||||
const_span_type append(const_span_type r);
|
||||
|
||||
/** DMA version of @ref append_span : get mapped span A at which
|
||||
* buffer will receive new content. Upstream may write into
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
DCircularBuffer::append(span_type src) -> span_type
|
||||
DCircularBuffer::append(const_span_type src) -> const_span_type
|
||||
{
|
||||
span_type dest = get_append_span(src.size());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue