C# 클래스 CqlSharp.Protocol.StreamExtensions

Extensions to the Stream class to read and write primitive values as used in the Binary Protocol
파일 보기 프로젝트 열기: reuzel/CqlSharp

공개 메소드들

메소드 설명
ReadByteArray ( this stream ) : byte[]

Reads a byte array.

ReadInet ( this stream ) : IPEndPoint

Reads an IP-Address and port

ReadInt ( this stream ) : int

Reads an int.

ReadShort ( this stream ) : ushort

Reads a short.

ReadShortByteArray ( this stream ) : byte[]

Reads a short byte array.

ReadString ( this stream ) : string

Reads a string.

ReadStringList ( this stream ) : string[]

Reads a list of strings

ReadStringMultimap ( this stream ) : string[]>.Dictionary

Reads a string multimap.

ReadUuid ( this stream ) : System.Guid

Reads a UUID/GUID.

WriteByteArray ( this stream, byte data ) : void

Writes a byte array.

WriteConsistency ( this stream, CqlConsistency consistency ) : void

Writes the consistency.

WriteInet ( this stream, IPEndPoint endpoint ) : void

Writes an IP address and port

WriteInt ( this stream, int data ) : void

Writes an int.

WriteLong ( this stream, long data ) : void

Writes an long.

WriteLongString ( this stream, string data ) : void

Writes a long string.

WriteShort ( this stream, ushort data ) : void

Writes a short.

WriteShortByteArray ( this stream, byte data ) : void

Writes a short byte array.

WriteString ( this stream, string data ) : void

Writes a string.

WriteStringList ( this stream, IList data ) : void

Writes a list of strings.

WriteStringMap ( this stream, string>.IDictionary dic ) : void

Writes a string map.

WriteUuid ( this stream, System.Guid guid ) : void

Writes a UUID/GUID.

비공개 메소드들

메소드 설명
ReadBuffer ( this stream, byte buffer ) : void

Reads the buffer.

ReadBuffer ( this stream, byte buffer, int len ) : void

Reads the buffer up to a specified length

메소드 상세

ReadByteArray() 공개 정적인 메소드

Reads a byte array.
public static ReadByteArray ( this stream ) : byte[]
stream this The stream.
리턴 byte[]

ReadInet() 공개 정적인 메소드

Reads an IP-Address and port
Unexpected end of stream
public static ReadInet ( this stream ) : IPEndPoint
stream this The stream.
리턴 System.Net.IPEndPoint

ReadInt() 공개 정적인 메소드

Reads an int.
Unexpected end of stream reached
public static ReadInt ( this stream ) : int
stream this The stream.
리턴 int

ReadShort() 공개 정적인 메소드

Reads a short.
Unexpected end of stream reached
public static ReadShort ( this stream ) : ushort
stream this The stream.
리턴 ushort

ReadShortByteArray() 공개 정적인 메소드

Reads a short byte array.
public static ReadShortByteArray ( this stream ) : byte[]
stream this The stream.
리턴 byte[]

ReadString() 공개 정적인 메소드

Reads a string.
public static ReadString ( this stream ) : string
stream this The stream.
리턴 string

ReadStringList() 공개 정적인 메소드

Reads a list of strings
public static ReadStringList ( this stream ) : string[]
stream this The stream.
리턴 string[]

ReadStringMultimap() 공개 정적인 메소드

Reads a string multimap.
public static ReadStringMultimap ( this stream ) : string[]>.Dictionary
stream this The stream.
리턴 string[]>.Dictionary

ReadUuid() 공개 정적인 메소드

Reads a UUID/GUID.
public static ReadUuid ( this stream ) : System.Guid
stream this The stream.
리턴 System.Guid

WriteByteArray() 공개 정적인 메소드

Writes a byte array.
public static WriteByteArray ( this stream, byte data ) : void
stream this The stream.
data byte The data.
리턴 void

WriteConsistency() 공개 정적인 메소드

Writes the consistency.
public static WriteConsistency ( this stream, CqlConsistency consistency ) : void
stream this The stream.
consistency CqlConsistency The consistency.
리턴 void

WriteInet() 공개 정적인 메소드

Writes an IP address and port
public static WriteInet ( this stream, IPEndPoint endpoint ) : void
stream this The stream.
endpoint System.Net.IPEndPoint The endpoint.
리턴 void

WriteInt() 공개 정적인 메소드

Writes an int.
public static WriteInt ( this stream, int data ) : void
stream this The stream.
data int The data.
리턴 void

WriteLong() 공개 정적인 메소드

Writes an long.
public static WriteLong ( this stream, long data ) : void
stream this The stream.
data long The data.
리턴 void

WriteLongString() 공개 정적인 메소드

Writes a long string.
public static WriteLongString ( this stream, string data ) : void
stream this The stream.
data string The data.
리턴 void

WriteShort() 공개 정적인 메소드

Writes a short.
public static WriteShort ( this stream, ushort data ) : void
stream this The stream.
data ushort The data.
리턴 void

WriteShortByteArray() 공개 정적인 메소드

Writes a short byte array.
public static WriteShortByteArray ( this stream, byte data ) : void
stream this The stream.
data byte The data.
리턴 void

WriteString() 공개 정적인 메소드

Writes a string.
public static WriteString ( this stream, string data ) : void
stream this The stream.
data string The data.
리턴 void

WriteStringList() 공개 정적인 메소드

Writes a list of strings.
public static WriteStringList ( this stream, IList data ) : void
stream this The stream.
data IList The data.
리턴 void

WriteStringMap() 공개 정적인 메소드

Writes a string map.
public static WriteStringMap ( this stream, string>.IDictionary dic ) : void
stream this The stream.
dic string>.IDictionary The dic.
리턴 void

WriteUuid() 공개 정적인 메소드

Writes a UUID/GUID.
public static WriteUuid ( this stream, System.Guid guid ) : void
stream this The stream.
guid System.Guid The GUID.
리턴 void