C# Class Pchp.Library.Streams.NativeStream

An implementation of PhpStream as a simple encapsulation of a .NET System.IO.Stream class which is directly accessible via the RawStream property.
Inheritance: PhpStream
Afficher le fichier Open project: iolevel/peachpie

Protected Properties

Свойство Type Description
stream Stream

Méthodes publiques

Méthode Description
NativeStream ( Context ctx, Stream nativeStream, StreamWrapper openingWrapper, StreamAccessOptions accessOptions, string openedPath, StreamContext context ) : Pchp.Core

Méthodes protégées

Méthode Description
FreeManaged ( ) : void

PhpResource.FreeManaged overridden to get rid of the contained context on Dispose.

RawFlush ( ) : bool
RawLength ( ) : int

Returns the Length property of the underlying stream.

RawRead ( byte buffer, int offset, int count ) : int
RawSeek ( int offset, SeekOrigin whence ) : bool
RawTell ( ) : int
RawWrite ( byte buffer, int offset, int count ) : int
SeekExpects ( long position, long length, long offset, SeekOrigin whence ) : long

Get the expected position in the stream to check for Seek() failure.

Method Details

FreeManaged() protected méthode

PhpResource.FreeManaged overridden to get rid of the contained context on Dispose.
protected FreeManaged ( ) : void
Résultat void

NativeStream() public méthode

public NativeStream ( Context ctx, Stream nativeStream, StreamWrapper openingWrapper, StreamAccessOptions accessOptions, string openedPath, StreamContext context ) : Pchp.Core
ctx Pchp.Core.Context
nativeStream Stream
openingWrapper StreamWrapper
accessOptions StreamAccessOptions
openedPath string
context StreamContext
Résultat Pchp.Core

RawFlush() protected méthode

protected RawFlush ( ) : bool
Résultat bool

RawLength() protected méthode

Returns the Length property of the underlying stream.
protected RawLength ( ) : int
Résultat int

RawRead() protected méthode

protected RawRead ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

RawSeek() protected méthode

protected RawSeek ( int offset, SeekOrigin whence ) : bool
offset int
whence SeekOrigin
Résultat bool

RawTell() protected méthode

protected RawTell ( ) : int
Résultat int

RawWrite() protected méthode

protected RawWrite ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

SeekExpects() protected méthode

Get the expected position in the stream to check for Seek() failure.
protected SeekExpects ( long position, long length, long offset, SeekOrigin whence ) : long
position long Actual position in the stream.
length long The length of the stream.
offset long The offset for the seek() operation.
whence SeekOrigin Where to count the new position from.
Résultat long

Property Details

stream protected_oe property

The encapsulated native stream.
protected Stream stream
Résultat Stream