Top Description Fields Constructors Methods
jnr.posix

pack-priv final Class POSIXFunctionMapper

extends Object
implements FunctionMapper
Class Inheritance
All Implemented Interfaces
jnr.ffi.mapper.FunctionMapper
Annotations
@Deprecated
Imports
jnr.ffi.mapper.FunctionMapper

Deprecated

Use SimpleFunctionMapper instead.

No longer used. It used to map function names from libc names to msvcrt names.

Field Summary

Modifier and TypeField and Description
public static final FunctionMapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
mapFunctionName(String
to translate
name
,
FunctionMapper.Context
for translation
ctx
)

Implements jnr.ffi.mapper.FunctionMapper.mapFunctionName.

Translate the (Java) function name into its (native) equivalent.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final FunctionMapper INSTANCE

Constructor Detail

POSIXFunctionMapperback to summary
private POSIXFunctionMapper()

Method Detail

mapFunctionNameback to summary
public String mapFunctionName(String name, FunctionMapper.Context ctx)

Implements jnr.ffi.mapper.FunctionMapper.mapFunctionName.

Doc from jnr.ffi.mapper.FunctionMapper.mapFunctionName.

Translate the (Java) function name into its (native) equivalent. If the name is not present in the map, it is to return the supplied name (same object exactly).

Parameters
name:String

to translate

ctx:FunctionMapper.Context

for translation

Returns:String

native equivalent or functionName if not in map