Skip to content

Commit

Permalink
[Rgen] Allow to mark porperties as Zero copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque committed Jan 21, 2025
1 parent 9516bf1 commit 4ff41a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ObjCBindings/ExportTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ public enum Property : Int64 {
/// </summary>
CustomMarshalDirective = 1 << 5,

/// <summary>
/// Apply to strings parameters that are merely retained or assigned,
/// not copied this is an exception as it is advised in the coding
/// standard for Objective-C to avoid this, but a few properties do use
/// this. Use this falg for properties flagged with `retain' or
/// `assign', which look like this:
///
/// @property (retain) NSString foo;
/// @property (assign) NSString assigned;
///
/// This forced the generator to create an NSString before calling the
/// API instead of using the fast string marshalling code.
/// </summary>
DisableZeroCopy = 1 << 6,

}
}

0 comments on commit 4ff41a9

Please sign in to comment.