hessiancsharp.io.CHessianOutput.WriteListBegin C# (CSharp) Method

WriteListBegin() public method

Writes the list header to the stream. List writers will call writeListBegin followed by the list contents and then call writeListEnd. V t b16 b8 type l b32 b24 b16 b8
public WriteListBegin ( int intLength, string strType ) : void
intLength int
strType string
return void
        public override void WriteListBegin(int intLength, string strType)
        {
            m_srOutput.WriteByte((byte) (PROT_LIST_TYPE));
            m_srOutput.WriteByte((byte) (PROT_TYPE));
            PrintLenString(strType);

            m_srOutput.WriteByte((byte) (PROT_LENGTH));
            m_srOutput.WriteByte((byte) (intLength >> 24));
            m_srOutput.WriteByte((byte) (intLength >> 16));
            m_srOutput.WriteByte((byte) (intLength >> 8));
            m_srOutput.WriteByte((byte) (intLength));
        }