[#BloombergLP-bdls-FilesystemUtil_WindowsImpUtil-getFileSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil_WindowsImpUtil.adoc[FilesystemUtil&lowbar;WindowsImpUtil]::getFileSize
:relfileprefix: ../../../
:mrdocs:

Return the size, in bytes, of the file with the specified `descriptor`, or a negative value if an error occurs&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filesystemutil&lowbar;windowsimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdls/FilesystemUtil_WindowsImpUtil/Offset.adoc[FilesystemUtil&lowbar;WindowsImpUtil&lt;WINDOWS&lowbar;INTERFACE&gt;::Offset]
getFileSize(xref:BloombergLP/bdls/FilesystemUtil_WindowsImpUtil/FileDescriptor.adoc[FileDescriptor] descriptor);
----

== Return Value

the size in bytes, or a negative value if an error occurs

== Parameters

[cols="1,4"]
|===
| Name| Description
| *descriptor*
| open file descriptor whose size is requested
|===


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