[#BloombergLP-bdlbb-BlobUtil-write-0cc]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobUtil.adoc[BlobUtil]::write
:relfileprefix: ../../../
:mrdocs:

`write` overloads

== Synopses

Declared in `&lt;bdlbb&lowbar;blobutil&period;h&gt;`

Write the specified `source` to the specified `stream`, and return a reference to the modifiable `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
static
STREAM&
xref:BloombergLP/bdlbb/BlobUtil/write-03.adoc[write](
    STREAM& stream,
    xref:BloombergLP/bdlbb/Blob.adoc[Blob] const& source);
----

[.small]#xref:BloombergLP/bdlbb/BlobUtil/write-03.adoc[_» more&period;&period;&period;_]#

Write to the specified `stream` the specified `numBytes` starting at the specified `sourcePosition` in the specified `source` blob&period; Return 0 on success or a non&hyphen;zero value otherwise&period; Note that this function will fail (immediately) if the length of `source` is less than `numBytes`&semi; or if there is any error writing to `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
static
int
xref:BloombergLP/bdlbb/BlobUtil/write-0c6.adoc[write](
    STREAM& stream,
    xref:BloombergLP/bdlbb/Blob.adoc[Blob] const& source,
    int sourcePosition,
    int numBytes);
----

[.small]#xref:BloombergLP/bdlbb/BlobUtil/write-0c6.adoc[_» more&period;&period;&period;_]#


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