[#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 `<bdlbb_blobutil.h>` Write the entire source blob to a stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> 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..._]# Write a byte range from a blob to a stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> 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..._]# == Return Value * reference to the modifiable `stream` * 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *stream* | output stream | *source* | blob to write | *sourcePosition* | starting byte offset in `source` | *numBytes* | number of bytes to write |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#