public void Pack(ObjectWriter writer) { writer.Write(rect.Top); writer.Write(rect.Left); writer.Write(rect.Bottom); writer.Write(rect.Right); writer.Write(body.Length); writer.Write(body); }
public void Pack(object obj, ObjectWriter writer) { PSObject ps = (PSObject)obj; foreach (PSPropertyInfo prop in ps.Properties) { writer.Write(prop.Name); writer.WriteObject(prop.Value); } writer.Write(""); }
public void Pack(ObjectWriter writer) { int nDims = ((Page.pageSize-ObjectHeader.Sizeof-12)/card - 4) / 16; writer.Write(n); writer.WriteObject(branch); for (int i = 0; i < n; i++) { for (int j = 0; j < nDims; j++) { writer.Write(b[i].GetMinCoord(j)); writer.Write(b[i].GetMaxCoord(j)); } } }