private void writeScript(ABCFile.Script v) { writeU30(v.sinit); writeU30((uint)v.traits.Length); foreach (var value in v.traits) { writeTrait(value); } }
private ABCFile.Script readScript() { var r = new ABCFile.Script(); r.sinit = readU30(); r.traits = new ABCFile.TraitsInfo[readU30()]; for (int i = 0; i < r.traits.Length; i++) { r.traits[i] = readTrait(); } return(r); }