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 page_z,
|
||||||
size_type buffer_align_z,
|
size_type buffer_align_z,
|
||||||
span_type reserved_range);
|
span_type reserved_range);
|
||||||
|
#ifdef NOT_YET
|
||||||
/** constructor */
|
/** constructor */
|
||||||
DCircularBuffer(const CircularBufferConfig & config);
|
DCircularBuffer(const CircularBufferConfig & config);
|
||||||
|
#endif
|
||||||
/** non-copyable **/
|
/** non-copyable **/
|
||||||
DCircularBuffer(const DCircularBuffer & other) = delete;
|
DCircularBuffer(const DCircularBuffer & other) = delete;
|
||||||
/** move ctor **/
|
/** move ctor **/
|
||||||
|
|
@ -107,7 +109,7 @@ namespace xo {
|
||||||
* If buffer memory exhausted, may copy a prefix of @p r.
|
* If buffer memory exhausted, may copy a prefix of @p r.
|
||||||
* In that case returns the remaining suffix 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
|
/** DMA version of @ref append_span : get mapped span A at which
|
||||||
* buffer will receive new content. Upstream may write into
|
* buffer will receive new content. Upstream may write into
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ namespace xo {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto
|
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());
|
span_type dest = get_append_span(src.size());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue