[#BloombergLP-bdlbb-BlobUtil-findBufferIndexAndOffset] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobUtil.adoc[BlobUtil]::findBufferIndexAndOffset :relfileprefix: ../../../ :mrdocs: Return a value, designated here as `p`, such that for the specified `blob`, `blob.buffer(p.first)` is the buffer that contains the byte at the specified `position` in `blob`, and `p.second` is the offset corresponding to `position` within said buffer. The behavior of this function is undefined unless `0 <= position`, `0 < blob.totalSize()`, and `position < blob.totalSize()`. Note that (1) subsequent changes to `blob` may invalidate the result of this function, and (2) `p.first` never indicates a zero‐size buffer. == Synopsis Declared in `<bdlbb_blobutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:bsl/pair-0b.adoc[bsl::pair<int, int>] findBufferIndexAndOffset( xref:BloombergLP/bdlbb/Blob.adoc[Blob] const& blob, int position); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#