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.
Показать файл Открыть проект

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

Свойство Тип Описание
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[]