Skip to content

Commit eca0942

Browse files
committed
Copied README from cobhan-node
1 parent 3bdf6e3 commit eca0942

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
# cobhan-python
1+
# Cobhan FFI
2+
3+
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.
4+
5+
## Types
6+
7+
* Supported types
8+
* int32 - 32bit signed integer
9+
* int64 - 64bit signed integer
10+
* float64 - double precision 64bit IEEE 754 floating point
11+
* Cobhan buffer - length delimited 8bit buffer (no null delimiters)
12+
* utf-8 encoded string
13+
* JSON
14+
* binary data
15+
* Cobhan buffer details
16+
* Callers provide the output buffer allocation and capacity
17+
* Called functions can transparently return larger values via temporary files
18+
* **Modern [tmpfs](https://en.wikipedia.org/wiki/Tmpfs) is entirely memory backed**
19+
* Return values
20+
* Functions that return scalar values can return the value directly
21+
* Functions *can* use special case and return maximum positive or maximum negative or zero values to
22+
represent error or overflow conditions
23+
* Functions *can* allow scalar values to wrap
24+
* Functions should document their overflow / underflow behavior
25+

0 commit comments

Comments
 (0)