Aegis.Network.Packet.Clear C# (CSharp) Method

Clear() public method

패킷 버퍼를 초기화하고 source 데이터를 저장합니다. Packet Header의 Size는 source 버퍼의 헤더값이 사용됩니다.
public Clear ( byte source, int index, int size ) : void
source byte 저장할 데이터
index int 저장할 데이터의 시작위치
size int 저장할 데이터 크기(Byte)
return void
        public virtual void Clear(byte[] source, int index, int size)
        {
            if (size < 4)
                throw new AegisException(AegisResult.InvalidArgument, "The source size must be at lest 4 bytes.");

            Clear();
            Write(source, index, size);
            Size = GetUInt16(0);
        }

Same methods

Packet::Clear ( ) : void
Packet::Clear ( StreamBuffer source ) : void