C# Класс Microsoft.Protocols.TestSuites.MS_OXCFXICS.StreamHelper

A helper class for stream operations
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
GuidLength int

Открытые методы

Метод Описание
ReadGuid ( Stream stream ) : System.Guid

Read a GUID value from a stream and advances the position within the stream by 16.

ReadLongTermId ( Stream stream ) : LongTermId

Read a LongTermId from a stream and advances the position within the stream by 24.

ReadString8 ( Stream stream ) : string

Read an ASCII string value from a stream.

ReadUInt16 ( Stream stream ) : ushort

Read a ushort value from a stream and advances the position within the stream by 2.

ReadUInt32 ( Stream stream ) : uint

Read a uint value from a stream and advances the position within the stream by 4.

ReadUInt64 ( Stream stream ) : ulong

Read a ulong value from a stream and advances the position within the stream by 8.

ReadUInt8 ( Stream stream ) : byte

Read a byte from a stream and advances the position within the stream by 1.

WriteBuffer ( Stream stream, byte buffer ) : int

Write bytes to a stream and advances the position within the stream by 16.

WriteGuid ( Stream stream, System.Guid guid ) : int

Write a GUID value to a stream and advances the position within the stream by 16

WriteLongTermId ( Stream stream, LongTermId id ) : int

Write a LongTermId value to a stream and advances the position within the stream by 24.

WriteUInt16 ( Stream stream, ushort value ) : int

Write a ushort value to a stream and advances the position within the stream by 2.

WriteUInt32 ( Stream stream, uint value ) : int

Write a uint value to a stream and advances the position within the stream by 4.

WriteUInt64 ( Stream stream, ulong value ) : int

Write a ulong value to a stream and advances the position within the stream by 8.

Описание методов

ReadGuid() публичный статический Метод

Read a GUID value from a stream and advances the position within the stream by 16.
public static ReadGuid ( Stream stream ) : System.Guid
stream Stream The stream.
Результат System.Guid

ReadLongTermId() публичный статический Метод

Read a LongTermId from a stream and advances the position within the stream by 24.
public static ReadLongTermId ( Stream stream ) : LongTermId
stream Stream The stream.
Результат Microsoft.Protocols.TestSuites.Common.LongTermId

ReadString8() публичный статический Метод

Read an ASCII string value from a stream.
public static ReadString8 ( Stream stream ) : string
stream Stream The stream.
Результат string

ReadUInt16() публичный статический Метод

Read a ushort value from a stream and advances the position within the stream by 2.
public static ReadUInt16 ( Stream stream ) : ushort
stream Stream The stream.
Результат ushort

ReadUInt32() публичный статический Метод

Read a uint value from a stream and advances the position within the stream by 4.
public static ReadUInt32 ( Stream stream ) : uint
stream Stream The stream.
Результат uint

ReadUInt64() публичный статический Метод

Read a ulong value from a stream and advances the position within the stream by 8.
public static ReadUInt64 ( Stream stream ) : ulong
stream Stream The stream.
Результат ulong

ReadUInt8() публичный статический Метод

Read a byte from a stream and advances the position within the stream by 1.
public static ReadUInt8 ( Stream stream ) : byte
stream Stream The stream.
Результат byte

WriteBuffer() публичный статический Метод

Write bytes to a stream and advances the position within the stream by 16.
public static WriteBuffer ( Stream stream, byte buffer ) : int
stream Stream The stream.
buffer byte A byte array.
Результат int

WriteGuid() публичный статический Метод

Write a GUID value to a stream and advances the position within the stream by 16
public static WriteGuid ( Stream stream, System.Guid guid ) : int
stream Stream The stream.
guid System.Guid A GUID value.
Результат int

WriteLongTermId() публичный статический Метод

Write a LongTermId value to a stream and advances the position within the stream by 24.
public static WriteLongTermId ( Stream stream, LongTermId id ) : int
stream Stream The stream.
id Microsoft.Protocols.TestSuites.Common.LongTermId A LongTermId value.
Результат int

WriteUInt16() публичный статический Метод

Write a ushort value to a stream and advances the position within the stream by 2.
public static WriteUInt16 ( Stream stream, ushort value ) : int
stream Stream The stream.
value ushort A ushort value.
Результат int

WriteUInt32() публичный статический Метод

Write a uint value to a stream and advances the position within the stream by 4.
public static WriteUInt32 ( Stream stream, uint value ) : int
stream Stream The stream.
value uint A uint value.
Результат int

WriteUInt64() публичный статический Метод

Write a ulong value to a stream and advances the position within the stream by 8.
public static WriteUInt64 ( Stream stream, ulong value ) : int
stream Stream The stream.
value ulong A ulong value.
Результат int

Описание свойств

GuidLength публичное статическое свойство

The size of a GUID structure.
public static int GuidLength
Результат int