Cobhan FFI
Project description
Cobhan FFI
Cobhan FFI is a proof of concept system for enabling shared code to be written in Rust or Go and consumed from all major languages/platforms in a safe and effective way, using easy helper functions to manage any unsafe data marshaling.
Types
- Supported types
- int32 - 32bit signed integer
- int64 - 64bit signed integer
- float64 - double precision 64bit IEEE 754 floating point
- Cobhan buffer - length delimited 8bit buffer (no null delimiters)
- utf-8 encoded string
- JSON
- binary data
- Cobhan buffer details
- Callers provide the output buffer allocation and capacity
- Called functions can transparently return larger values via temporary files
- Modern tmpfs is entirely memory backed
- Return values
- Functions that return scalar values can return the value directly
- Functions can use special case and return maximum positive or maximum negative or zero values to represent error or overflow conditions
- Functions can allow scalar values to wrap
- Functions should document their overflow / underflow behavior
- Functions that return scalar values can return the value directly
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cobhan-0.4.3.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file cobhan-0.4.3.tar.gz
.
File metadata
- Download URL: cobhan-0.4.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3992e9d9b107893d2822014b434b31e57a63ec6f678de0f34a4c34c94551649 |
|
MD5 | c98d30afe65a9fa3e4ca20e5b8f438e0 |
|
BLAKE2b-256 | b960446d4ec831ebc8338277a9e2ec3a4e98ab3fe1280c0cc4937625e80d55ab |
File details
Details for the file cobhan-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: cobhan-0.4.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a53c2327fcb6a0d497cf1ae639aef9b49bd999a7165277d27250e98a5865c901 |
|
MD5 | 729bd992b1b55474cee159f9be93d11c |
|
BLAKE2b-256 | 29be72846263e5a328088fb2609c8bf59fdbcc57e8eca20a6973debf1c8f4caa |