lib/ury_rapid/baps/reader.rb
def string
        # BAPS strings are preceded by their length, Pascal-style.
        uint32 do |length|
          request(length, true) do |bytes|
            yield bytes
          end
        end
      end
# Requests that the Reader read a BAPS-formatted string
#
# The given block will be fired with the string as soon as it is read
# into the Reader's buffer.
#
# @api      public
# @example  Read a String, and print it out
#   reader.string { |s| p s }
#
# @yieldparam [String]
#   The read string.
#
# @return [void]
Requests that the Reader read a BAPS-formatted string
The given block will be fired with the string as soon as it is read
into the Reader's buffer.
Requests that the Reader read a BAPS - formatted string The given block will be fired with the string as soon as it is read into the Reader ' s buffer .
def string
        uint32 do |length|
          request(length, true) do |bytes|
            yield bytes
          end
        end
      end
def string uint32 do | length | request ( length , true ) do | bytes | yield bytes end end end
Requests that the Reader read a BAPS-formatted string
The given block will be fired with the string as soon as it is read
into the Reader's buffer.
Requests that the Reader read a BAPS - formatted string The given block will be fired with the string as soon as it is read into the Reader ' s buffer .
# BAPS strings are preceded by their length, Pascal-style.
None
void
The read string.
The read string .
api
None
example
Read a String, and print it out reader.string { |s| p s }
Read a String and print it out reader . string { |s| p s }