# FixNative Documentation

Back to summary

`import "native/native";`

## Library class

Native library.

### Initialization

`static function open(name: String): Library`
  Opens native library. The provided name is either just base name without extension, then it will be searched in default native paths. Or you can provide a full path to load it directly.
`function close()`
  Closes the library.

### Symbols

`function get_symbol(name: String): Pointer`
  Returns a pointer of a given symbol in the library, or `null` when not found.
`static function get_symbol(name: String): Pointer`
  Returns a pointer of a given symbol in the current process (may not work on every platform), or `null` when not found.

### Binding

`static function bind(base_name: String[, lib: Library])`
  Binds a library (either loaded using the base name or with given reference) to a logical name. Used for binding libraries when using the token processor to directly declare functions in C syntax.
`static function get_bound_symbol(base_name: String, sym_name: String): Pointer`
  Retrieves a pointer to a symbol using a logical name.