Write() public abstract method

public abstract Write ( byte buffer, int offset ) : ushort
buffer byte
offset int
return ushort
Exemplo n.º 1
0
        ushort WritePlainMessage(ContentType type, TLSMessage msg, int offset)
        {
            ushort size = msg.Write(_sendBuffer, offset);

            if (type == ContentType.Handshake)
            {
                byte[] temp = new byte[size];
                Buffer.BlockCopy(_sendBuffer, offset, temp, 0, size);
                _handshakePackets.Add(temp);
            }

            return(size);
        }
Exemplo n.º 2
0
        ushort WritePlainMessage(ContentType type, TLSMessage msg, int offset)
        {
            ushort size = msg.Write (_sendBuffer, offset);

            if (type == ContentType.Handshake) {
                byte[] temp = new byte[size];
                Buffer.BlockCopy (_sendBuffer, offset, temp, 0, size);
                _handshakePackets.Add (temp);
            }

            return size;
        }