Streaming codec for integer
More...
Inherits Org.Apache.REEF.Wake.StreamingCodec.IStreamingCodec< int >.
Streaming codec for integer
int Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.IntStreamingCodec.Read |
( |
IDataReader |
reader | ) |
|
|
inline |
Instantiate the class from the reader.
- Parameters
-
reader | The reader from which to read |
- Returns
- The integer read from the reader
async Task<int> Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.IntStreamingCodec.ReadAsync |
( |
IDataReader |
reader, |
|
|
CancellationToken |
token |
|
) |
| |
|
inline |
Instantiate the class from the reader.
- Parameters
-
reader | The reader from which to read |
token | Cancellation token |
- Returns
- The integer read from the reader
void Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.IntStreamingCodec.Write |
( |
int |
obj, |
|
|
IDataWriter |
writer |
|
) |
| |
|
inline |
Writes the integer to the writer.
- Parameters
-
obj | The integer to be encoded |
writer | The writer to which to write |
async Task Org.Apache.REEF.Wake.StreamingCodec.CommonStreamingCodecs.IntStreamingCodec.WriteAsync |
( |
int |
obj, |
|
|
IDataWriter |
writer, |
|
|
CancellationToken |
token |
|
) |
| |
|
inline |
Writes the integer to the writer.
- Parameters
-
obj | The integer to be encoded |
writer | The writer to which to write |
token | Cancellation token |
The documentation for this class was generated from the following file: