ConstructHeader() public méthode

Constructs a packet header.
/// Thrown if is less than 2. ///
public ConstructHeader ( int length ) : byte[]
length int The length of the packet to make a header for.
Résultat byte[]
 /// <summary>
 /// Constructs a packet header and encodes the given length in it.
 /// </summary>
 /// <remarks>
 /// When overriding this method in a derived class,
 /// do not call the base implementation.
 /// </remarks>
 /// <param name="length">The length of the packet.</param>
 /// <returns>a 4-element byte array which should be prepended to the packet data.</returns>
 private byte[] ConstructHeader(int length)
 {
     return(_encryptor.ConstructHeader(length));
 }