Class StreamExtensions
Inheritance
System.Object
StreamExtensions
Assembly: MAT.OCS.Core.dll
Syntax
public static class StreamExtensions : Object
Methods
CopyToStream(Stream, Stream)
Declaration
public static void CopyToStream(this Stream input, Stream output)
Parameters
Type |
Name |
Description |
System.IO.Stream |
input |
|
System.IO.Stream |
output |
|
ReadBoolean(Stream)
Declaration
public static bool ReadBoolean(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Boolean |
|
ReadByteArray(Stream)
Declaration
public static byte[] ReadByteArray(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Byte[] |
|
ReadDateTime(Stream)
Declaration
public static DateTime ReadDateTime(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.DateTime |
|
ReadDouble(Stream)
Declaration
public static double ReadDouble(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Double |
|
ReadDoubleArray(Stream)
Declaration
public static double[] ReadDoubleArray(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Double[] |
|
ReadErrorStatusArray(Stream)
Declaration
public static ErrorStatusType[] ReadErrorStatusArray(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
ReadGuid(Stream)
Declaration
public static Guid ReadGuid(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Guid |
|
ReadInt16(Stream)
Declaration
public static short ReadInt16(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Int16 |
|
ReadInt32(Stream)
Declaration
public static int ReadInt32(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Int32 |
|
ReadInt64(Stream)
Declaration
public static long ReadInt64(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Int64 |
|
ReadIPEndPoint(Stream)
Declaration
public static IPEndPoint ReadIPEndPoint(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Net.IPEndPoint |
|
ReadLongArray(Stream)
Declaration
public static long[] ReadLongArray(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Int64[] |
|
ReadNullableInt64(Stream)
Declaration
public static Nullable<long> ReadNullableInt64(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Nullable<System.Int64> |
|
ReadStatus(Stream)
Declaration
public static DataStatusType ReadStatus(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
ReadStatusArray(Stream)
Declaration
public static DataStatusType[] ReadStatusArray(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
ReadString(Stream)
Declaration
public static string ReadString(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.String |
|
ReadStringList(Stream)
Declaration
public static List<string> ReadStringList(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
ReadStringListUTF8(Stream)
Declaration
public static List<string> ReadStringListUTF8(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
ReadStringUTF8(Stream)
Declaration
public static string ReadStringUTF8(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.String |
|
ReadUInt16(Stream)
Declaration
public static ushort ReadUInt16(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.UInt16 |
|
ReadUInt16List(Stream)
Declaration
public static List<ushort> ReadUInt16List(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.UInt16> |
|
ReadUInt32(Stream)
Declaration
public static uint ReadUInt32(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.UInt32 |
|
ReadUInt32List(Stream)
Declaration
public static List<uint> ReadUInt32List(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.UInt32> |
|
ReadUInt64(Stream)
Declaration
public static ulong ReadUInt64(this Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.UInt64 |
|
WriteBoolean(Stream, Boolean)
Declaration
public static void WriteBoolean(this Stream stream, bool value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Boolean |
value |
|
WriteByteArray(Stream, Byte[])
Declaration
public static void WriteByteArray(this Stream stream, byte[] value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Byte[] |
value |
|
WriteDateTime(Stream, DateTime)
Declaration
public static void WriteDateTime(this Stream stream, DateTime value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.DateTime |
value |
|
WriteDouble(Stream, Double)
Declaration
public static void WriteDouble(this Stream stream, double value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Double |
value |
|
WriteDoubleArray(Stream, ICollection<Double>)
Declaration
public static void WriteDoubleArray(this Stream stream, ICollection<double> values)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Collections.Generic.ICollection<System.Double> |
values |
|
WriteDoubleArray(Stream, Double[])
Declaration
public static void WriteDoubleArray(this Stream stream, double[] value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Double[] |
value |
|
WriteDoubleArray(Stream, Double[], Int32)
Declaration
public static void WriteDoubleArray(this Stream stream, double[] value, int maxCount)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Double[] |
value |
|
System.Int32 |
maxCount |
|
WriteErrorStatusArray(Stream, ErrorStatusType[])
Declaration
public static void WriteErrorStatusArray(this Stream stream, ErrorStatusType[] value)
Parameters
WriteGuid(Stream, Guid)
Declaration
public static void WriteGuid(this Stream stream, Guid value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Guid |
value |
|
WriteInt16(Stream, Int16)
Declaration
public static void WriteInt16(this Stream stream, short value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Int16 |
value |
|
WriteInt32(Stream, Int32)
Declaration
public static void WriteInt32(this Stream stream, int value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Int32 |
value |
|
WriteInt64(Stream, Int64)
Declaration
public static void WriteInt64(this Stream stream, long value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Int64 |
value |
|
WriteIPEndPoint(Stream, IPEndPoint)
Declaration
public static void WriteIPEndPoint(this Stream stream, IPEndPoint value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Net.IPEndPoint |
value |
|
WriteLongArray(Stream, Int64[])
Declaration
public static void WriteLongArray(this Stream stream, long[] inputValue)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Int64[] |
inputValue |
|
WriteLongArray(Stream, Int64[], Int32)
Declaration
public static void WriteLongArray(this Stream stream, long[] value, int maxCount)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Int64[] |
value |
|
System.Int32 |
maxCount |
|
WriteNullableInt64(Stream, Nullable<Int64>)
Declaration
public static void WriteNullableInt64(this Stream stream, Nullable<long> value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Nullable<System.Int64> |
value |
|
WriteStatus(Stream, DataStatusType)
Declaration
public static void WriteStatus(this Stream stream, DataStatusType value)
Parameters
WriteStatusArray(Stream, DataStatusType[])
Declaration
public static void WriteStatusArray(this Stream stream, DataStatusType[] statusValues)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
DataStatusType[] |
statusValues |
|
WriteStatusArray(Stream, DataStatusType[], Int32)
Declaration
public static void WriteStatusArray(this Stream stream, DataStatusType[] statusValues, int count)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
DataStatusType[] |
statusValues |
|
System.Int32 |
count |
|
WriteString(Stream, String)
Declaration
public static void WriteString(this Stream stream, string value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.String |
value |
|
WriteStringList(Stream, IList<String>)
Declaration
public static void WriteStringList(this Stream stream, IList<string> values)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Collections.Generic.IList<System.String> |
values |
|
WriteStringListUTF8(Stream, IList<String>)
Declaration
public static void WriteStringListUTF8(this Stream stream, IList<string> strings)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Collections.Generic.IList<System.String> |
strings |
|
WriteStringListUTF8(Stream, List<String>)
Declaration
public static void WriteStringListUTF8(this Stream stream, List<string> strings)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Collections.Generic.List<System.String> |
strings |
|
WriteStringUTF8(Stream, String)
Declaration
public static void WriteStringUTF8(this Stream stream, string value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.String |
value |
|
WriteUInt16(Stream, UInt16)
Declaration
public static void WriteUInt16(this Stream stream, ushort value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.UInt16 |
value |
|
WriteUInt16List(Stream, IReadOnlyList<UInt16>)
Declaration
public static void WriteUInt16List(this Stream stream, IReadOnlyList<ushort> values)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Collections.Generic.IReadOnlyList<System.UInt16> |
values |
|
WriteUInt32(Stream, UInt32)
Declaration
public static void WriteUInt32(this Stream stream, uint value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.UInt32 |
value |
|
WriteUInt32List(Stream, IReadOnlyList<UInt32>)
Declaration
public static void WriteUInt32List(this Stream stream, IReadOnlyList<uint> inputValue)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Collections.Generic.IReadOnlyList<System.UInt32> |
inputValue |
|
WriteUInt64(Stream, UInt64)
Declaration
public static void WriteUInt64(this Stream stream, ulong value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.UInt64 |
value |
|