public override void GenerateParseBody(StringBuilder b, int pad, string bitBufferName)
 {
     base.GenerateParseBody(b, pad, bitBufferName);
     b.IndentAppendLine(pad, Fields[2].GetFieldName() + ".ParseValue(" + bitBufferName + ");");
 }
 public override void GenerateEncodeBody(StringBuilder b, int pad, string bitBufferName)
 {
     base.GenerateEncodeBody(b, pad, bitBufferName);
     var fieldName = Fields[1].GetFieldName();
     b.IndentAppendLine(pad, "for (int i = 0; i < " + fieldName + ".Length; i++) { " + fieldName + "[i].EncodeValue(" + bitBufferName + "); };");
 }
 public override void GenerateEncodeBody(StringBuilder b, int pad, string bitBufferName)
 {
     b.IndentAppendLine(pad, bitBufferName + ".WriteBlob(32, Data);");
 }
 public override void GenerateParseBody(StringBuilder b, int pad, string bitBufferName)
 {
     b.IndentAppendLine(pad, "Data = " + bitBufferName + ".ReadBlob(32);");
 }
 public override void GenerateFields(StringBuilder b, int pad)
 {
     b.IndentAppendLine(pad, "public byte[] Data;");
 }
 public override void GenerateAsTextBody(StringBuilder b, int pad)
 {
     base.GenerateAsTextBody(b, pad);
     b.IndentAppendLine(pad, "//blob text (?)");
 }