module RedisClient::RESP3

def parse_blob(io)

Experimental RBS support (using type sampling data from the type_fusion project).

def parse_blob: (RedisClient::RubyConnection::BufferedIO io) -> untyped

This signature was generated using 1 sample from 1 application.

def parse_blob(io)
  bytesize = parse_integer(io)
  return if bytesize < 0 # RESP2 nil type
  str = io.read_chomp(bytesize)
  str.force_encoding(Encoding.default_external)
  str.force_encoding(Encoding::BINARY) unless str.valid_encoding?
  str
end