Tesla Graphics Engine Documentation (January 2012)
ISavableWriter Interface
TeslaTesla.ContentISavableWriter
Interface for a writer that serializes an object that implements the ISavable interface to an output.
Declaration Syntax
C#
public interface ISavableWriter : IDisposable
Members
All Members Methods Properties



Icon Member Description
Dispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Flush()()()()
Causes all outstanding data to be written to their outputs.

FullResourceName
Gets the name of the resource output that the writer will write data to.

GetExternalWriter(Type)
Gets an external writer, if it exists, by target type.

IsDisposed
Gets if the writer has been disposed or not.

RegisterExternalWriter(ExternalWriter)
Registers an external writer to be used by the savable writer when an external reference is asked to be written for a specific savable type.

RemoveExternalWriter(Type)
Removes an external writer by target type.

Write(String, Byte)
Writes a single byte to the output.

Write(String, array<Byte>[]()[][])
Writes an array of bytes to the output.

Write(String, array<Byte,2>[,](,)[,][,])
Writes a 2D array of bytes to the output.

Write(String, SByte)
Writes a single sbyte to the output.

Write(String, array<SByte>[]()[][])
Writes an array of sbytes to the output.

Write(String, array<SByte,2>[,](,)[,][,])
Writes a 2D array of sbytes to the output.

Write(String, Char)
Writes a single char to the output.

Write(String, array<Char>[]()[][])
Writes an array of char to the output.

Write(String, array<Char,2>[,](,)[,][,])
Writes a 2D array of char to the output.

Write(String, UInt16)
Writes a single unsigned 16-bit int to the output.

Write(String, array<UInt16>[]()[][])
Writes an array of unsigned 16-bit ints to the output.

Write(String, array<UInt16,2>[,](,)[,][,])
Writes a 2D array of unsigned 16-bit ints to the output.

Write(String, UInt32)
Writes a single unsigned 32-bit int to the output.

Write(String, array<UInt32>[]()[][])
Writes an array of unsigned 32-bit ints to the output.

Write(String, array<UInt32,2>[,](,)[,][,])
Writes a 2D array of unsigned 32-bit ints to the output.

Write(String, UInt64)
Writes a single unsigned 64-bit int to the output.

Write(String, array<UInt64>[]()[][])
Writes an array of unsigned 64-bit ints to the output.

Write(String, array<UInt64,2>[,](,)[,][,])
Writes a 2D array of unsigned 64-bit ints to the output.

Write(String, Int16)
Writes a single 16-bit int to the output.

Write(String, array<Int16>[]()[][])
Writes an array of 16-bit ints to the output.

Write(String, array<Int16,2>[,](,)[,][,])
Writes a 2D array of 16-bit ints to the output.

Write(String, Int32)
Writes a single 32-bit int to the output.

Write(String, array<Int32>[]()[][])
Writes an array of 32-bit ints to the output.

Write(String, array<Int32,2>[,](,)[,][,])
Writes a 2D array of 32-bit ints to the output.

Write(String, Int64)
Writes a single 64-bit int to the output.

Write(String, array<Int64>[]()[][])
Writes an array of 64-bit ints to the output.

Write(String, array<Int64,2>[,](,)[,][,])
Writes a 2D array of 64-bit ints to the output.

Write(String, Single)
Writes a single float value to the output.

Write(String, array<Single>[]()[][])
Writes an array of floats to the output.

Write(String, array<Single,2>[,](,)[,][,])
Writes a 2D array floats to the output.

Write(String, Double)
Writes a single double value to the output.

Write(String, array<Double>[]()[][])
Writes an array of doubles to the output.

Write(String, array<Double,2>[,](,)[,][,])
Writes a 2D array of doubles to the output.

Write(String, Boolean)
Writes a single boolean to the output.

Write(String, array<Boolean>[]()[][])
Writes an array of booleans to the output.

Write(String, array<Boolean,2>[,](,)[,][,])
Writes a 2D array of booleans to the output.

Write(String, String)
Writes a single string to the output.

Write(String, array<String>[]()[][])
Writes an array of strings to the output.

Write(String, array<String,2>[,](,)[,][,])
WRites a 2D array of strings to the output.

Write(String, Color)
Writes a single color struct to the output.

Write(String, array<Color>[]()[][])
Writes an array of color structs to the output.

Write(String, array<Color,2>[,](,)[,][,])
Writes a 2D array of color structs to the output.

Write(String, Matrix)
Writes a single matrix struct to the output.

Write(String, array<Matrix>[]()[][])
Writes an array of matrix structs to the output.

Write(String, array<Matrix,2>[,](,)[,][,])
Writes a 2D array of matrix structs to the output.

Write(String, Quaternion)
Writes a single quaternion struct to the output.

Write(String, array<Quaternion>[]()[][])
Writes an array of quaternion structs to the output.

Write(String, array<Quaternion,2>[,](,)[,][,])
Writes a 2D array of quaternion structs to the output.

Write(String, Vector2)
Writes a single vector2 struct to the output.

Write(String, array<Vector2>[]()[][])
Writes an array of vector2 structs to the output.

Write(String, array<Vector2,2>[,](,)[,][,])
Writes a 2D array of vector2 structs to the output.

Write(String, Vector3)
Writes a single vector3 struct to the output.

Write(String, array<Vector3>[]()[][])
Writes an array of vector3 structs to the output.

Write(String, array<Vector3,2>[,](,)[,][,])
Writes a 2D array of vector3 structs to the output.

Write(String, Vector4)
Writes a single vector4 struct to the output.

Write(String, array<Vector4>[]()[][])
Writes an array of vector4 structs to the output.

Write(String, array<Vector4,2>[,](,)[,][,])
Writes a 2D array of vector4 structs to the output.

WriteEnum<(Of <<'(T>)>>)(String, T)
Writes an enum value to the output.

WriteExternal<(Of <<'(T>)>>)(String, T)
Writes a reference to another savable output that is external to this output. Externals may or may not be written separately, such as there exists no writer for the savable type. In this case, the external is in fact written as a regular savable object to the same stream.

WriteExternals
Gets or sets if the writer should write external objects, which involves evoking writers for that type. If false, externals are simply written to the same output.

WriteSavable<(Of <<'(T>)>>)(String, T)
Writes a savable object to the output.

WriteSavable<(Of <<'(T>)>>)(String, array<T>[]()[][])
Writes an array of savable objects to the output.

WriteSavable<(Of <<'(T>)>>)(String, array<T,2>[,](,)[,][,])
Writes a 2D array of savable objects to the output.

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)