C# 클래스 Tx.Network.ByteArrayExtentions

Extentions to Byte[] to: - read bits at specified offsets from either a Byte or a network order UShort - read a single Byte or network order UShort - read an IPv4 Address
파일 보기 프로젝트 열기: Reactive-Extensions/Tx

공개 메소드들

메소드 설명
AsByteArraySegment ( this source ) : ArraySegment
ReadBits ( this bytes, int bitPosition, int bitLength ) : byte
ReadBits ( this bytes, int bufferOffset, int bitPosition, int bitLength ) : byte
ReadIpAddress ( this bytes, int bufferOffset ) : IPAddress
ReadNetOrderUShort ( this bytes, int bufferOffset ) : ushort
ReadNetOrderUShort ( this bytes, int bufferOffset, int bitPosition, int bitLength ) : ushort
ReadUShort ( this bytes, int bufferOffset ) : ushort

메소드 상세

AsByteArraySegment() 공개 정적인 메소드

public static AsByteArraySegment ( this source ) : ArraySegment
source this
리턴 ArraySegment

ReadBits() 공개 정적인 메소드

public static ReadBits ( this bytes, int bitPosition, int bitLength ) : byte
bytes this
bitPosition int
bitLength int
리턴 byte

ReadBits() 공개 정적인 메소드

public static ReadBits ( this bytes, int bufferOffset, int bitPosition, int bitLength ) : byte
bytes this
bufferOffset int
bitPosition int
bitLength int
리턴 byte

ReadIpAddress() 공개 정적인 메소드

public static ReadIpAddress ( this bytes, int bufferOffset ) : IPAddress
bytes this
bufferOffset int
리턴 System.Net.IPAddress

ReadNetOrderUShort() 공개 정적인 메소드

public static ReadNetOrderUShort ( this bytes, int bufferOffset ) : ushort
bytes this
bufferOffset int
리턴 ushort

ReadNetOrderUShort() 공개 정적인 메소드

public static ReadNetOrderUShort ( this bytes, int bufferOffset, int bitPosition, int bitLength ) : ushort
bytes this
bufferOffset int
bitPosition int
bitLength int
리턴 ushort

ReadUShort() 공개 정적인 메소드

public static ReadUShort ( this bytes, int bufferOffset ) : ushort
bytes this
bufferOffset int
리턴 ushort