lib/iso8583/bitmap.rb
# Parse the bytes in string and return the Bitmap and bytes remaining in `str`
# after the bitmap is taken away.
Parse the bytes in string and return the Bitmap and bytes remaining in `str`
after the bitmap is taken away.
Parse the bytes in string and return the Bitmap and bytes remaining in ` str ` after the bitmap is taken away .
def parse(str, hex_bitmap = false, bitmap_size = 64)
        bmp  = Bitmap.new(str, hex_bitmap, bitmap_size)
        rest = if bmp.hex_bitmap?
                 str[bmp.size_in_bytes_hex, str.length]
               else
                 str[bmp.size_in_bytes, str.length]
               end
        [ bmp, rest ]
      end
def parse ( str , hex_bitmap = false , bitmap_size = 64 ) bmp = Bitmap . new ( str , hex_bitmap , bitmap_size ) rest = if bmp . hex_bitmap? str [ bmp . size_in_bytes_hex , str . length ] else str [ bmp . size_in_bytes , str . length ] end [ bmp , rest ] end
Parse the bytes in string and return the Bitmap and bytes remaining in `str`
after the bitmap is taken away.
Parse the bytes in string and return the Bitmap and bytes remaining in ` str ` after the bitmap is taken away .
str
<not_specific>
hex_bitmap
<not_specific>
bitmap_size
<not_specific>