# File lib/bson/byte_buffer.rb, line 150 def put_int(i, offset=nil) @cursor = offset if offset if more? @str[@cursor, 4] = [i].pack(@int_pack_order) else ensure_length(@cursor) @str << [i].pack(@int_pack_order) end @cursor += 4 end