示例#1
0
    public string TestBuffer()
    {
        IntBuffer buff = new IntBuffer(2);

        buff.Append(1);
        buff.Append(3);
        buff.Append(5);
        buff.Append(7);
        buff.Append(9);
        buff.Append(11);
        buff.Append(13);
        buff.Append(15);
        buff.Append(17);
        int a = buff[0];
        int b = buff[1];
        int c = buff[2];

        buff[1] = 10;
        int d = buff[1];

        return(Convert.ToString(a) + Convert.ToString(b) + Convert.ToString(c) + Convert.ToString(d));
    }