Is there a way to send BSON serialized data to a pipe ?
Writing a BSON to a file can be done with e.g.
using BSON arr = <somearray> fname = tempname() BSON.bson(fname, data = arr) arr2 = BSON.load(fname)[:data] rm(fname)
However if I try to write the same array to a Pipe with
server = listen("\\\\.\\pipe\\testiobson") sock = accept(server) # need to connect with another process BSON.bson(sock, data = arr)
MethodError: no method matching bson(::Base.PipeEndpoint; data=<somearray>...
BSON.bson cannot accept a pipe as a primary argument, but is there a lower lever function that could ? Otherwise, is it possible to wrap this to make it happen ?