SECEditBlockBuffer::GetBufferNo

intSECEditBlockBuffer::GetBufferNo(intnOffset, BOOLbKeepBeforeLineEnd)

Returns the buffer index for a given offset.

Defined in: SECEditBlockBuffer.cpp

Return Value

Returns the buffer array index given the virtual text offset.

Parameters

nOffset

The virtual text offset.

bKeepBeforeLineEnd

Indicates whether to give the index of the next buffer if the offset is indicates a position after the line end terminating the buffer.

Comments

The buffer can be implemented as an array of contiguous buffers. This method will convert a virtual offset into a buffer array index.