choffstein/julia — comment on commit d35f535ba2c372e4a7ebbb602ee95f7c70fb2d1e
File:  line 0
By StefanKarpinski:

See `memcat` in `jl/string.jl` for an example of how to allocate memory on the Julia side and then call a C function on it. There are also lots of examples in various files providing bindings to linear algebra libraries. One other question: was there a reason to have a special `CompressedBytes` type? Why not just have compress accept an uncompressed byte array and return a compressed byte array and vice versa for uncompress? If you try to decompress something that's not a valid zlib-compressed byte array, it should raise an error; otherwise return the decompressed byte array.