// for bookmarks internal void WriteNodeMasks(NodeMaskModule module) { myWriter.Write(module.Items.Count()); foreach (var mask in module.Items.Reverse()) { WriteNodeMask(mask); } }
// for bookmarks internal void ReadNodeMasks(NodeMaskModule module) { var count = myReader.ReadInt32(); for (int i = 0; i < count; ++i) { module.Push(ReadNodeMask()); } }