Skip to content

Commit

Permalink
[Rgen] Allow disable porperties as zero copy. (#22026)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Jan 22, 2025
1 parent 0ab0743 commit 4500b4c
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 4500b4c

Please sign in to comment.