Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetLength

func GetLength() -> Result<long, StreamError>

Declaring type: MemoryStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: MemoryStream.rvn

Gets the current byte length, or Closed after closing.

Return value

Result<Int64, StreamError>

The length in bytes, independent of the current position.