Skip to content

Modern Fs Stream WriteBytes

Paul Squires edited this page Oct 22, 2026 · 3 revisions

Home › Filesystem › File Streams › Stream.WriteBytes

Stream.WriteBytes

Writes every byte of an Array.

Syntax

Stream.WriteBytes( buf )

Notes

  • Writes every byte of buf, an Array( of ubyte ), with WriteAll.

Examples

#import "std/fs"
#import "std/containers"
using fs

dim as containers.Array( of ubyte ) b
b.Push( 104 ) : b.Push( 105 )
dim as MemoryStream m
print m.WriteBytes( b ).IsOk( ), m.ToUtf8Text( )    '' true hi

Library: Filesystem Library Category: File Streams Documented under: Streams

Clone this wiki locally