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).
Inherited Members
Namespace: VoltRpc.Types
Assembly: VoltRpc.dll
Syntax
public abstract class TypeReadWriter<T>
Type Parameters
Name | Description |
---|---|
T | The Type to read and write |
Methods
| Edit this page View SourceRead(BufferedReader)
Called when the type needs to be read
Declaration
public abstract T Read(BufferedReader reader)
Parameters
Type | Name | Description |
---|---|---|
BufferedReader | reader | The BufferedReader to read from |
Returns
Type | Description |
---|---|
T | Return the read value from the BufferedReader |
Write(BufferedWriter, T)
Called when the type needs to be written
Declaration
public abstract void Write(BufferedWriter writer, T value)
Parameters
Type | Name | Description |
---|---|---|
BufferedWriter | writer | The BufferedWriter to write to |
T | value | The value that needs to be written to the BufferedWriter |