[#BloombergLP-bdls-FdStreamBuf_FileHandler-getOffset]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf_FileHandler.adoc[FdStreamBuf&lowbar;FileHandler]::getOffset
:relfileprefix: ../../../
:mrdocs:

Return the number of bytes that the data in the range specified by `&lsqb;first, last)&rsqb;` will fill when written to the file descriptor&period; Note that on Unix, or for a binary file on Windows, this value will be `last &hyphen; first`, but for on Windows in text mode, extra bytes are added when &grave;
` would be written to the file descriptor as `r
&grave;&period;

== Synopsis

Declared in `&lt;bdls&lowbar;fdstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::streamoff
getOffset(
    char* first,
    char* last) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
