C# 클래스 Lidgren.Network.NetOutgoingMessage

상속: SlimNet.Network.IRawStream
파일 보기 프로젝트 열기: tomoprime/CrabBattle 1 사용 예제들

공개 메소드들

메소드 설명
EnsureBufferSize ( int numberOfBits ) : void

Ensures the buffer can hold this number of bits

InternalEnsureBufferSize ( int numberOfBits ) : void

Ensures the buffer can hold this number of bits

PeekDataBuffer ( ) : byte[]

Returns the internal data buffer, don't modify

Write ( IPEndPoint endPoint ) : void

Writes an endpoint description

Write ( Int16 source ) : void

Writes a signed 16 bit integer

Write ( Int32 source ) : void

Writes a 32 bit signed integer

Write ( Int32 source, int numberOfBits ) : void

Writes a signed integer using 1 to 32 bits

Write ( System.Int64 source ) : void

Writes a 64 bit signed integer

Write ( System.Int64 source, int numberOfBits ) : void

Writes a signed integer using 1 to 64 bits

Write ( NetIncomingMessage message ) : void

Append all the bits of message to this message

Write ( NetOutgoingMessage message ) : void

Append all the bits of message to this message

Write ( UInt16 source ) : void

Writes an unsigned 16 bit integer

Write ( UInt16 source, int numberOfBits ) : void

Writes an unsigned integer using 1 to 16 bits

Write ( UInt32 source ) : void

Writes a 32 bit unsigned integer

Write ( UInt32 source, int numberOfBits ) : void

Writes a 32 bit signed integer

Write ( System.UInt64 source ) : void

Writes a 64 bit unsigned integer

Write ( System.UInt64 source, int numberOfBits ) : void

Writes an unsigned integer using 1 to 64 bits

Write ( bool value ) : void

Writes a boolean value using 1 bit

Write ( byte source ) : void

Write a byte

Write ( byte source, int numberOfBits ) : void

Writes 1 to 8 bits of a byte

Write ( byte source, int offsetInBytes, int numberOfBytes ) : void

Writes the specified number of bytes from an array

Write ( double source ) : void

Writes a 64 bit floating point value

Write ( float source ) : void

Writes a 32 bit floating point value

Write ( sbyte source ) : void

Writes a signed byte

Write ( string source ) : void

Write a string

WritePadBits ( ) : void

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.

WritePadBits ( int numberOfBits ) : void

Pads data with the specified number of bits.

WriteRangedInteger ( int min, int max, int value ) : int

Writes an integer with the least amount of bits need for the specified range Returns number of bits written

WriteRangedSingle ( float value, float min, float max, int numberOfBits ) : void

Compress a float within a specified range using a certain number of bits

WriteSignedSingle ( float value, int numberOfBits ) : void

Compress (lossy) a float in the range -1..1 using numberOfBits bits

WriteTime ( double localTime, bool highPrecision ) : void

Writes the local time to a message; readable (and convertable to local time) by the remote host using ReadTime()

WriteUnitSingle ( float value, int numberOfBits ) : void

Compress (lossy) a float in the range 0..1 using numberOfBits bits

WriteVariableInt32 ( int value ) : int

Write Base128 encoded variable sized signed integer of up to 32 bits

WriteVariableInt64 ( System.Int64 value ) : int

Write Base128 encoded variable sized signed integer of up to 64 bits

WriteVariableUInt32 ( uint value ) : int

Write Base128 encoded variable sized unsigned integer of up to 32 bits

WriteVariableUInt64 ( System.UInt64 value ) : int

Write Base128 encoded variable sized unsigned integer of up to 64 bits

비공개 메소드들

메소드 설명
NetOutgoingMessage ( ) : System

메소드 상세

EnsureBufferSize() 공개 메소드

Ensures the buffer can hold this number of bits
public EnsureBufferSize ( int numberOfBits ) : void
numberOfBits int
리턴 void

InternalEnsureBufferSize() 공개 메소드

Ensures the buffer can hold this number of bits
public InternalEnsureBufferSize ( int numberOfBits ) : void
numberOfBits int
리턴 void

PeekDataBuffer() 공개 메소드

Returns the internal data buffer, don't modify
public PeekDataBuffer ( ) : byte[]
리턴 byte[]

Write() 공개 메소드

Writes an endpoint description
public Write ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint
리턴 void

Write() 공개 메소드

Writes a signed 16 bit integer
public Write ( Int16 source ) : void
source System.Int16
리턴 void

Write() 공개 메소드

Writes a 32 bit signed integer
public Write ( Int32 source ) : void
source System.Int32
리턴 void

Write() 공개 메소드

Writes a signed integer using 1 to 32 bits
public Write ( Int32 source, int numberOfBits ) : void
source System.Int32
numberOfBits int
리턴 void

Write() 공개 메소드

Writes a 64 bit signed integer
public Write ( System.Int64 source ) : void
source System.Int64
리턴 void

Write() 공개 메소드

Writes a signed integer using 1 to 64 bits
public Write ( System.Int64 source, int numberOfBits ) : void
source System.Int64
numberOfBits int
리턴 void

Write() 공개 메소드

Append all the bits of message to this message
public Write ( NetIncomingMessage message ) : void
message NetIncomingMessage
리턴 void

Write() 공개 메소드

Append all the bits of message to this message
public Write ( NetOutgoingMessage message ) : void
message NetOutgoingMessage
리턴 void

Write() 공개 메소드

Writes an unsigned 16 bit integer
public Write ( UInt16 source ) : void
source System.UInt16
리턴 void

Write() 공개 메소드

Writes an unsigned integer using 1 to 16 bits
public Write ( UInt16 source, int numberOfBits ) : void
source System.UInt16
numberOfBits int
리턴 void

Write() 공개 메소드

Writes a 32 bit unsigned integer
public Write ( UInt32 source ) : void
source System.UInt32
리턴 void

Write() 공개 메소드

Writes a 32 bit signed integer
public Write ( UInt32 source, int numberOfBits ) : void
source System.UInt32
numberOfBits int
리턴 void

Write() 공개 메소드

Writes a 64 bit unsigned integer
public Write ( System.UInt64 source ) : void
source System.UInt64
리턴 void

Write() 공개 메소드

Writes an unsigned integer using 1 to 64 bits
public Write ( System.UInt64 source, int numberOfBits ) : void
source System.UInt64
numberOfBits int
리턴 void

Write() 공개 메소드

Writes a boolean value using 1 bit
public Write ( bool value ) : void
value bool
리턴 void

Write() 공개 메소드

Write a byte
public Write ( byte source ) : void
source byte
리턴 void

Write() 공개 메소드

Writes 1 to 8 bits of a byte
public Write ( byte source, int numberOfBits ) : void
source byte
numberOfBits int
리턴 void

Write() 공개 메소드

Writes the specified number of bytes from an array
public Write ( byte source, int offsetInBytes, int numberOfBytes ) : void
source byte
offsetInBytes int
numberOfBytes int
리턴 void

Write() 공개 메소드

Writes a 64 bit floating point value
public Write ( double source ) : void
source double
리턴 void

Write() 공개 메소드

Writes a 32 bit floating point value
public Write ( float source ) : void
source float
리턴 void

Write() 공개 메소드

Writes a signed byte
public Write ( sbyte source ) : void
source sbyte
리턴 void

Write() 공개 메소드

Write a string
public Write ( string source ) : void
source string
리턴 void

WritePadBits() 공개 메소드

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
public WritePadBits ( ) : void
리턴 void

WritePadBits() 공개 메소드

Pads data with the specified number of bits.
public WritePadBits ( int numberOfBits ) : void
numberOfBits int
리턴 void

WriteRangedInteger() 공개 메소드

Writes an integer with the least amount of bits need for the specified range Returns number of bits written
public WriteRangedInteger ( int min, int max, int value ) : int
min int
max int
value int
리턴 int

WriteRangedSingle() 공개 메소드

Compress a float within a specified range using a certain number of bits
public WriteRangedSingle ( float value, float min, float max, int numberOfBits ) : void
value float
min float
max float
numberOfBits int
리턴 void

WriteSignedSingle() 공개 메소드

Compress (lossy) a float in the range -1..1 using numberOfBits bits
public WriteSignedSingle ( float value, int numberOfBits ) : void
value float
numberOfBits int
리턴 void

WriteTime() 공개 메소드

Writes the local time to a message; readable (and convertable to local time) by the remote host using ReadTime()
public WriteTime ( double localTime, bool highPrecision ) : void
localTime double
highPrecision bool
리턴 void

WriteUnitSingle() 공개 메소드

Compress (lossy) a float in the range 0..1 using numberOfBits bits
public WriteUnitSingle ( float value, int numberOfBits ) : void
value float
numberOfBits int
리턴 void

WriteVariableInt32() 공개 메소드

Write Base128 encoded variable sized signed integer of up to 32 bits
public WriteVariableInt32 ( int value ) : int
value int
리턴 int

WriteVariableInt64() 공개 메소드

Write Base128 encoded variable sized signed integer of up to 64 bits
public WriteVariableInt64 ( System.Int64 value ) : int
value System.Int64
리턴 int

WriteVariableUInt32() 공개 메소드

Write Base128 encoded variable sized unsigned integer of up to 32 bits
public WriteVariableUInt32 ( uint value ) : int
value uint
리턴 int

WriteVariableUInt64() 공개 메소드

Write Base128 encoded variable sized unsigned integer of up to 64 bits
public WriteVariableUInt64 ( System.UInt64 value ) : int
value System.UInt64
리턴 int