C# 클래스 Microsoft.Protocols.TestSuites.MS_OXCFXICS.StreamHelper

A helper class for stream operations
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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