msgpack-ruby icon indicating copy to clipboard operation
msgpack-ruby copied to clipboard

MessagePack implementation for Ruby / msgpack.org[Ruby]

Results 13 msgpack-ruby issues
Sort by recently updated
recently updated
newest added

`#to_msgpack(packer)` returns given packer instance, not msgpack string. Generally, `#to_x` method returns instance of x in Ruby way. Current behavior is very confusing. Returning packer is for recursive packing, so...

```ruby # jruby 9.1.13.0 (2.3.3) sock = TCPSocket.new "localhost", 3000 u = MessagePack::Unpacker.new sock # => blocked here # - unreachable, until remote endpoint close the connection - u.each {...

Lets feed unpacker's buffer with some object. We can "forget" to feed the last byte. ``` s = MessagePack::Packer.new.pack({ "fit" => true }).to_s u = MessagePack::Unpacker.new (s.length - 1).times {...

Hi, I'm using fluentd to collect logs. I saw nested calls in error handle method of fluent-plugin-elasticsearch, and I simplified it to the following code, ``` ruby # sorry, these...

In windows environment with msgpack-1.0.2-x86-mingw32, Unpacker#read_array_header for array16 and Unpacker#read_map_header for map16 return a wrong size. A code to reproduce is following. ``` require 'msgpack' p MessagePack::VERSION unpacker = MessagePack::Unpacker.new()...

Currently method argument checks are not common between CRuby and JRuby. It's better to have common argument check for better compatibility (ex: io-like object of `Buffer#new` arguments) and throw ArgumentError...

`MessagePack::Buffer` is a great utility for high-performance data processing in Ruby with and without `msgpack` encoding. In a couple of cases I've hit a use case where I have a...

The API is a bit more modern and open the door to several features such as `memsize`, write barriers etc. The main addition for now is support for `memsize_of`: ```ruby...

optimization

It would be nice to give some examples of how to efficiently pack and unpack `Struct` instances. ```ruby def make_packer(io) packer = MessagePack::Packer.new(io) packer.register_type(0x00, Symbol, :to_msgpack_ext) packer.register_type(0x01, Time) {|object| object.to_s}...