public static void AddPropertyBag(ref byte[] dat, Pointer curPointer, PropertyBag bag) { bag.Serialize(ref dat, curPointer); }