public interface CoreFoundation
extends com.sun.jna.Library
| Modifier and Type | Field and Description |
|---|---|
static int |
kCFStringEncodingASCII |
static int |
kCFStringEncodingISOLatin1 |
static int |
kCFStringEncodingMacRoman |
static int |
kCFStringEncodingNextStepLatin |
static int |
kCFStringEncodingNonLossyASCII |
static int |
kCFStringEncodingUnicode |
static int |
kCFStringEncodingUTF16 |
static int |
kCFStringEncodingUTF16BE |
static int |
kCFStringEncodingUTF16LE |
static int |
kCFStringEncodingUTF32 |
static int |
kCFStringEncodingUTF32BE |
static int |
kCFStringEncodingUTF32LE |
static int |
kCFStringEncodingUTF8 |
static int |
kCFStringEncodingWindowsLatin1 |
| Modifier and Type | Method and Description |
|---|---|
void |
CFRelease(com.sun.jna.Pointer cf)
Releases a Core Foundation object.
|
com.sun.jna.Pointer |
CFStringGetCharactersPtr(com.sun.jna.Pointer theString)
Quickly obtains a pointer to the contents of a string as a buffer of Unicode characters.
|
boolean |
CFStringGetCString(com.sun.jna.Pointer theString,
byte[] buffer,
int bufferSize,
int encoding)
Copies the character contents of a string to a local C string buffer after converting the characters to a given encoding.
|
com.sun.jna.Pointer |
CFStringGetCStringPtr(com.sun.jna.Pointer theString,
int encoding)
Quickly obtains a pointer to a C-string buffer containing the characters of a string in a given encoding.
|
int |
CFStringGetLength(com.sun.jna.Pointer theString)
Returns the number (in terms of UTF-16 code pairs) of Unicode characters in a string.
|
static final int kCFStringEncodingMacRoman
static final int kCFStringEncodingWindowsLatin1
static final int kCFStringEncodingISOLatin1
static final int kCFStringEncodingNextStepLatin
static final int kCFStringEncodingASCII
static final int kCFStringEncodingUnicode
static final int kCFStringEncodingUTF8
static final int kCFStringEncodingNonLossyASCII
static final int kCFStringEncodingUTF16
static final int kCFStringEncodingUTF16BE
static final int kCFStringEncodingUTF16LE
static final int kCFStringEncodingUTF32
static final int kCFStringEncodingUTF32BE
static final int kCFStringEncodingUTF32LE
void CFRelease(com.sun.jna.Pointer cf)
cf - A CFType object to release. This value must not be NULL.int CFStringGetLength(com.sun.jna.Pointer theString)
theString - The string to examine.com.sun.jna.Pointer CFStringGetCharactersPtr(com.sun.jna.Pointer theString)
theString - The string whose contents you wish to access.boolean CFStringGetCString(com.sun.jna.Pointer theString,
byte[] buffer,
int bufferSize,
int encoding)
theString - The string whose contents you wish to access.buffer - The C string buffer into which to copy the string. On return, the buffer contains the converted characters. If there is an error in conversion, the buffer contains only partial results. The buffer must be large enough to contain the converted characters and a NUL terminator. For example, if the string is Toby, the buffer must be at least 5 bytes long.bufferSize - The length of buffer in bytes.encoding - The string encoding to which the character contents of theString should be converted. The encoding must specify an 8-bit encoding.com.sun.jna.Pointer CFStringGetCStringPtr(com.sun.jna.Pointer theString,
int encoding)
theString - The string whose contents you wish to access.encoding - The string encoding to which the character contents of theString should be converted. The encoding must specify an 8-bit encoding.