-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @AsUtf16 annotation to map java.lang.String to
unsigned short*
…
…(array of UTF-16 code units)
- Loading branch information
Showing
4 changed files
with
146 additions
and
28 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/org/bytedeco/javacpp/annotation/AsUtf16.java
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,17 @@ | ||
package org.bytedeco.javacpp.annotation; | ||
|
||
import org.bytedeco.javacpp.tools.Generator; | ||
|
||
import java.lang.annotation.*; | ||
|
||
/** | ||
* Annotation indicating that {@link java.lang.String} should be mapped | ||
* to array of UTF-16 code units ({@code unsigned short*}) instead | ||
* of byte array ({@code const char*}) | ||
* | ||
* @see Generator | ||
*/ | ||
|
||
@Documented @Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.METHOD, ElementType.PARAMETER}) | ||
public @interface AsUtf16 { } |
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
Oops, something went wrong.