Class TypeReadWriter<T>

Interface for reading and writing a type.

Read(BufferedReader) should read exactly how it is written to the BufferedWriter in Write(BufferedWriter, T).

Inheritance
TypeReadWriter<T>
Namespace: VoltRpc.Types
Assembly: VoltRpc.dll
Syntax
public abstract class TypeReadWriter<T>
Type Parameters
NameDescription
T

The Type to read and write

Methods

| Edit this page View Source

Read(BufferedReader)

Called when the type needs to be read

Declaration
public abstract T Read(BufferedReader reader)
Parameters
TypeNameDescription
BufferedReaderreader

The BufferedReader to read from

Returns
TypeDescription
T

Return the read value from the BufferedReader

| Edit this page View Source

Write(BufferedWriter, T)

Called when the type needs to be written

Declaration
public abstract void Write(BufferedWriter writer, T value)
Parameters
TypeNameDescription
BufferedWriterwriter

The BufferedWriter to write to

Tvalue

The value that needs to be written to the BufferedWriter