MCPcopy Create free account
hub / github.com/beefytech/Beef / SetReadPos

Method SetReadPos

BeefySysLib/util/ChunkedDataBuffer.cpp:151–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void ChunkedDataBuffer::SetReadPos(int pos)
152{
153 mReadPoolIdx = pos / ALLOC_SIZE;
154 mReadCurAlloc = mPools[mReadPoolIdx];
155 mReadCurPtr = mReadCurAlloc + pos % ALLOC_SIZE;
156 mReadNextAlloc = mReadCurPtr + ALLOC_SIZE;
157}
158
159void ChunkedDataBuffer::NextReadPool()
160{

Callers 4

GetBufferDataMethod · 0.80
WriteMethod · 0.80
WriteTypeDataMethod · 0.80
HandleNextCmdMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected