C# 클래스 Plasma.pnHelpers

파일 보기 프로젝트 열기: Hoikas/PlasmaDotNet

공개 메소드들

메소드 설명
GetBytes ( string hex ) : byte[]

Converts a hex string to a byte array.

GetString ( byte buf ) : string

Converts an array of Bytes to a hex String

ReadString ( Plasma.hsStream s ) : string

Reads in a UTF-16 string with an int32 size

ReadString ( Plasma.hsStream s, int maxSize ) : string

Reads in a UTF-16 string with an int16 size and a predefined maximum size

ReadUuid ( Plasma.hsStream s ) : System.Guid
WriteString ( Plasma.hsStream s, string data ) : void

Writes a UTF-16 string with an int32 size

WriteString ( Plasma.hsStream s, string data, int maxSize ) : void
WriteUuid ( Plasma.hsStream s, System.Guid uuid ) : void

메소드 상세

GetBytes() 공개 정적인 메소드

Converts a hex string to a byte array.
public static GetBytes ( string hex ) : byte[]
hex string
리턴 byte[]

GetString() 공개 정적인 메소드

Converts an array of Bytes to a hex String
public static GetString ( byte buf ) : string
buf byte Array of Bytes to convert
리턴 string

ReadString() 공개 정적인 메소드

Reads in a UTF-16 string with an int32 size
public static ReadString ( Plasma.hsStream s ) : string
s Plasma.hsStream Stream to read from
리턴 string

ReadString() 공개 정적인 메소드

Reads in a UTF-16 string with an int16 size and a predefined maximum size
public static ReadString ( Plasma.hsStream s, int maxSize ) : string
s Plasma.hsStream Stream to read from
maxSize int Maximum string size
리턴 string

ReadUuid() 공개 정적인 메소드

public static ReadUuid ( Plasma.hsStream s ) : System.Guid
s Plasma.hsStream
리턴 System.Guid

WriteString() 공개 정적인 메소드

Writes a UTF-16 string with an int32 size
public static WriteString ( Plasma.hsStream s, string data ) : void
s Plasma.hsStream Stream to write to
data string String to write to the stream
리턴 void

WriteString() 공개 정적인 메소드

public static WriteString ( Plasma.hsStream s, string data, int maxSize ) : void
s Plasma.hsStream
data string
maxSize int
리턴 void

WriteUuid() 공개 정적인 메소드

public static WriteUuid ( Plasma.hsStream s, System.Guid uuid ) : void
s Plasma.hsStream
uuid System.Guid
리턴 void