From: "pynix (Pynix wang) via ruby-core" Date: 2023-12-16T18:37:19+00:00 Subject: [ruby-core:115766] [Ruby master Feature#20069] Buffer class in stdlib Issue #20069 has been updated by pynix (Pynix wang). main use case is deal binary data���a replacement of String. eg grpc bytes type, crypto key and more. maybe not same as io buffer, so Bytes or Binary is good for class name. ---------------------------------------- Feature #20069: Buffer class in stdlib https://bugs.ruby-lang.org/issues/20069#change-105703 * Author: pynix (Pynix wang) * Status: Open * Priority: Normal ---------------------------------------- ruby use `String` to deal with bytes, this cause error on irb "invalid byte sequence in utf-8" can we get a builtin class like Buffer or Bytes that represent as hex string -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/