This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(winrtgen): rename ArrayStyle enum to ArrayPassingStyle (#302)
- Loading branch information
1 parent
81584de
commit 96d5a4e
Showing
6 changed files
with
57 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) 2023, Dart | Windows. Please see the AUTHORS file for details. | ||
// All rights reserved. Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
/// Represents the various array-passing styles in WinRT. | ||
/// See https://learn.microsoft.com/uwp/winrt-cref/winrt-type-system#array-parameters | ||
enum ArrayPassingStyle { | ||
/// Used when the caller provides an array for the method to fill, up to a | ||
/// maximum array size. | ||
/// | ||
/// In this style, the array size parameter is an `in` parameter, while the | ||
/// array parameter is an `out` parameter. | ||
fill, | ||
|
||
/// Used when the caller provides an array to the method. | ||
/// | ||
/// In this style, the array size parameter and the array parameter are both | ||
/// `in` parameters. | ||
pass, | ||
|
||
/// Used when the caller receives an array that was allocated by the method. | ||
/// | ||
/// In this style, the array size parameter and the array parameter are both | ||
/// `out` parameters. Additionally, the array parameter is passed by | ||
/// reference (that is, `ArrayType**`, rather than `ArrayType*`). | ||
receive | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters