struct

MessagePack::Copy

Inherits Struct / Value / Object

Fast copy msgpack objects from IO to IO, without full parse, without create temp objects this is usefull for streaming apis MessagePack::Copy.new(io1, io2).copy_objects(1) This is from 40% to 700% faster than MessagePack::IOUnpacker.new(io1).read.to_msgpack(io2)

Constructors

new(io_src : IO, io_dst : IO)
Source

Instance methods

copy_object
Source
copy_objects(n)
Source
io_dst
Source
io_src
Source