Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
To facilitate working with instances of the为方便处理 __Asio__ 中定义的 __ConstBufferSequence__and和 __MutableBufferSequence__concepts introduced in __Asio__, Beast treats those sequences as a special type of range. The following algorithms and wrappers are provided which transform these ranges efficiently using lazy evaluation. No memory allocations are used in the transformations; instead, they create lightweight iterators over the existing, unmodified memory buffers. Control of buffers is retained by the caller; ownership is not transferred.这两种概念,Beast 将它们视为一种特殊的范围类型。该库提供以下算法和包装器,采用延迟求值的方式对这类范围进行高效转换。转换时不会分配内存,只是在已有且未修改的内存缓冲区上创建轻量级迭代器。缓冲区的控制权依然属于调用方,不涉及所有权转移。