internal void ForeachAttribute(Action <PlaceAttributeHandle> action) { // PlaceAttributeHandle is valid only in this callback and users should not keep its reference AttributesCallback callback = (index, total, handle, userData) => { action(new PlaceAttributeHandle(handle, true)); return(true); }; ForeachAttribute(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get attributes list from native handle"); }
internal static extern ErrorCode ForeachAttribute(IntPtr /* maps_place_h */ place, AttributesCallback callback, IntPtr /* void */ userData);
internal static extern int Foreach(IntPtr attributes, AttributesCallback cb, IntPtr userData);