C# Класс 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.
Наследование: PhpStream
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
stream Stream

Открытые методы

Метод Описание
NativeStream ( Context ctx, Stream nativeStream, StreamWrapper openingWrapper, StreamAccessOptions accessOptions, string openedPath, StreamContext context ) : Pchp.Core

Защищенные методы

Метод Описание
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.

Описание методов

FreeManaged() защищенный Метод

PhpResource.FreeManaged overridden to get rid of the contained context on Dispose.
protected FreeManaged ( ) : void
Результат void

NativeStream() публичный Метод

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
Результат Pchp.Core

RawFlush() защищенный Метод

protected RawFlush ( ) : bool
Результат bool

RawLength() защищенный Метод

Returns the Length property of the underlying stream.
protected RawLength ( ) : int
Результат int

RawRead() защищенный Метод

protected RawRead ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

RawSeek() защищенный Метод

protected RawSeek ( int offset, SeekOrigin whence ) : bool
offset int
whence SeekOrigin
Результат bool

RawTell() защищенный Метод

protected RawTell ( ) : int
Результат int

RawWrite() защищенный Метод

protected RawWrite ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

SeekExpects() защищенный Метод

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.
Результат long

Описание свойств

stream защищенное свойство

The encapsulated native stream.
protected Stream stream
Результат Stream