Header menu logo F# Compiler Guide

StreamExtensions Module

Type extensions

Type extension Description

this.AsByteMemory

Full Usage: this.AsByteMemory

Parameters:
    () : unit

Returns: ByteMemory

Extended Type: Stream

() : unit
Returns: ByteMemory

this.GetReader

Full Usage: this.GetReader

Parameters:
    codePage : int option
    ?retryLocked : bool

Returns: StreamReader

Extended Type: Stream

codePage : int option
?retryLocked : bool
Returns: StreamReader

this.GetWriter

Full Usage: this.GetWriter

Parameters:
Returns: TextWriter

Extended Type: Stream

?encoding : Encoding
Returns: TextWriter

this.ReadAllBytes

Full Usage: this.ReadAllBytes

Parameters:
    () : unit

Returns: byte[]

Extended Type: Stream

() : unit
Returns: byte[]

this.ReadAllLines

Full Usage: this.ReadAllLines

Parameters:
Returns: string array

Extended Type: Stream

?encoding : Encoding
Returns: string array

this.ReadAllText

Full Usage: this.ReadAllText

Parameters:
Returns: string

Extended Type: Stream

?encoding : Encoding
Returns: string

this.ReadBytes

Full Usage: this.ReadBytes

Parameters:
    start : int
    len : int

Returns: byte[]

Extended Type: Stream

start : int
len : int
Returns: byte[]

this.ReadLines

Full Usage: this.ReadLines

Parameters:
Returns: string seq

Extended Type: Stream

?encoding : Encoding
Returns: string seq

this.Write

Full Usage: this.Write

Parameters:
    data : 'a

Extended Type: Stream

data : 'a

this.WriteAllLines

Full Usage: this.WriteAllLines

Parameters:
    contents : string seq
    ?encoding : Encoding

Extended Type: Stream

contents : string seq
?encoding : Encoding

this.WriteAllText

Full Usage: this.WriteAllText

Parameters:
    text : string

Extended Type: Stream

text : string

Type something to start searching.