C# 클래스 Axiom.Graphics.BufferStream

This class is intended to allow a clean stream interface for writing to hardware buffers. An instance of this would be returned by one of the HardwareBuffer.Lock methods, which would allow easily and safely writing to a hardware buffer without having to use unsafe code.
파일 보기 프로젝트 열기: WolfgangSt/axiom

보호된 프로퍼티들

프로퍼티 타입 설명
data System.IntPtr
owner Axiom.Graphics.HardwareBuffer
position long
tmp System.ValueType[]

공개 메소드들

메소드 설명
Read ( byte buffer, int offset, int count ) : int

Seek ( long offset ) : long

Moves the "cursor" position within the buffer.

Seek ( long offset, SeekOrigin origin ) : long

Moves the "cursor" position within the buffer.

Write ( System val ) : void
Write ( System val, int offset ) : void
Write ( System val, int offset, int count ) : void

Write ( Vector3 vec, int offset ) : void
Write ( Vector4 vec, int offset ) : void
Write ( byte val, int offset ) : void
Write ( float val, int offset ) : void
Write ( short val, int offset ) : void

비공개 메소드들

메소드 설명
BufferStream ( Axiom.Graphics.HardwareBuffer owner, IntPtr data ) : System

Constructor.

메소드 상세

Read() 공개 메소드

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

Seek() 공개 메소드

Moves the "cursor" position within the buffer.
public Seek ( long offset ) : long
offset long Offset (in bytes) to move from the current position.
리턴 long

Seek() 공개 메소드

Moves the "cursor" position within the buffer.
public Seek ( long offset, SeekOrigin origin ) : long
offset long Number of bytes to move.
origin SeekOrigin How to treat the offset amount.
리턴 long

Write() 공개 메소드

public Write ( System val ) : void
val System
리턴 void

Write() 공개 메소드

public Write ( System val, int offset ) : void
val System
offset int
리턴 void

Write() 공개 메소드

public Write ( System val, int offset, int count ) : void
val System
offset int
count int
리턴 void

Write() 공개 메소드

public Write ( Vector3 vec, int offset ) : void
vec Vector3
offset int
리턴 void

Write() 공개 메소드

public Write ( Vector4 vec, int offset ) : void
vec Vector4
offset int
리턴 void

Write() 공개 메소드

public Write ( byte val, int offset ) : void
val byte
offset int
리턴 void

Write() 공개 메소드

public Write ( float val, int offset ) : void
val float
offset int
리턴 void

Write() 공개 메소드

public Write ( short val, int offset ) : void
val short
offset int
리턴 void

프로퍼티 상세

data 보호되어 있는 프로퍼티

Pointer to the raw data we will be writing to.
protected IntPtr,System data
리턴 System.IntPtr

owner 보호되어 있는 프로퍼티

Reference to the hardware buffer who owns this stream.
protected HardwareBuffer,Axiom.Graphics owner
리턴 Axiom.Graphics.HardwareBuffer

position 보호되어 있는 프로퍼티

Current position (as a byte offset) into the stream.
protected long position
리턴 long

tmp 보호되어 있는 프로퍼티

Temp array.
protected ValueType[],System tmp
리턴 System.ValueType[]