Generated by DocFX

Class BinaryReaderExtensions

Binary reader extensions.

Inheritance
System.Object
BinaryReaderExtensions
Namespace: ISynergy.Framework.Core.Extensions
Assembly: ISynergy.Framework.Core.dll
Syntax
public static class BinaryReaderExtensions : object

Methods

View Source

Read<T>(BinaryReader, out T)

Reads a struct from a stream.

Declaration
public static bool Read<T>(this BinaryReader stream, out T structure)
    where T : struct
Parameters
Type Name Description
BinaryReader stream
T structure
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
View Source

ReadJagged<T>(BinaryReader, Int32, Int32)

Reads a struct from a stream.

Declaration
public static T[][] ReadJagged<T>(this BinaryReader stream, int rows, int columns)
    where T : struct
Parameters
Type Name Description
BinaryReader stream
System.Int32 rows
System.Int32 columns
Returns
Type Description
T[][]
Type Parameters
Name Description
T
View Source

ReadMatrix(BinaryReader, Type, Int32[])

Reads a struct from a stream.

Declaration
public static Array ReadMatrix(this BinaryReader stream, Type type, params int[] lengths)
Parameters
Type Name Description
BinaryReader stream
Type type
System.Int32[] lengths
Returns
Type Description
Array
View Source

ReadMatrix<T>(BinaryReader, Int32, Int32)

Reads a struct from a stream.

Declaration
public static T[, ] ReadMatrix<T>(this BinaryReader stream, int rows, int columns)
    where T : struct
Parameters
Type Name Description
BinaryReader stream
System.Int32 rows
System.Int32 columns
Returns
Type Description
T[,]
Type Parameters
Name Description
T