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
파일 보기 프로젝트 열기: iolevel/peachpie

보호된 프로퍼티들

프로퍼티 타입 설명
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