コード例 #1
0
    public static void term_to_binary(ref byte[] OutData,ref int OutStartIndex, Term term)
    {
        if (OutData.Length<IncDataSize)
            OutData= new byte[IncDataSize];

        OutData[OutStartIndex] = (byte)131;//ErlangBinary;
        OutStartIndex++;

        OutData=term.term_to_binary(ref OutData, ref OutStartIndex);
    }
コード例 #2
0
    public static byte[] term_to_binary(Term term,bool trim)
    {
        byte[] Data = new byte[IncDataSize];

        int Index = 1;

        Data[0] = (byte)131;//ErlangBinary;

        Data=term.term_to_binary(ref Data, ref Index);
        if (trim)
        {
            byte[] newData = new byte[Index + 1];
            Array.Copy(Data, newData, newData.Length);
            return newData;
        }
        else
            return Data;
    }
コード例 #3
0
    public static byte[] term_to_binary(Term term)
    {
        byte [] Data=new byte[IncDataSize];

        int Index=1;

        Data[0]=(byte)131;//ErlangBinary;

        return term.term_to_binary(ref Data,ref Index);
    }