Skip to content

Modern Fs MemoryStream Length

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

Home › Filesystem › File Streams › MemoryStream.Length

MemoryStream.Length

Returns the number of bytes held, whatever the position.

Syntax

MemoryStream.Length( )

Notes

  • The number of bytes held, whatever the position.

Examples

#import "std/fs"
using fs

dim as MemoryStream m = MemoryStream( "abc" )
print m.Length( )    '' 3

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

Clone this wiki locally