lib/ury_rapid/baps/reader.rb
def shift_buffer(num_bytes)
        result = @buffer.byteslice(0...num_bytes)
        @buffer = @buffer.byteslice(num_bytes..@buffer.bytesize)
        result
      end
# Shifts the given number of bytes off the buffer.
#
# The calling code is expected to check the bytesize of the buffer first.
#
# @api private
#
# @param num_bytes [Integer]  The number of bytes to shift.
#
# @return [String]  The shifted bytes.
Shifts the given number of bytes off the buffer.
The calling code is expected to check the bytesize of the buffer first.
Shifts the given number of bytes off the buffer . The calling code is expected to check the bytesize of the buffer first .
def shift_buffer(num_bytes)
        result = @buffer.byteslice(0...num_bytes)
        @buffer = @buffer.byteslice(num_bytes..@buffer.bytesize)
        result
      end
def shift_buffer ( num_bytes ) result = @buffer . byteslice ( 0 ... num_bytes ) @buffer = @buffer . byteslice ( num_bytes .. @buffer . bytesize ) result end
Shifts the given number of bytes off the buffer.
Shifts the given number of bytes off the buffer .
The shifted bytes.
The shifted bytes .
String
num_bytes
The number of bytes to shift.
The number of bytes to shift .
api
None