BinTreeNodeWriter.writeListStart C# (CSharp) Method

writeListStart() protected method

protected writeListStart ( int len ) : void
len int
return void
    protected void writeListStart(int len)
    {
        if (len == 0)
        {
            this.buffer.Add(0x00);
        }
        else if (len < 256)
        {
            this.buffer.Add(0xf8);
            this.writeInt8(len);
        }
        else
        {
            this.buffer.Add(0xf9);
            this.writeInt16(len);
        }
    }