// Generated by CoffeeScript 1.7.1
var parser;

parser = function(buffer) {
  var c, columnCount, orderColumns, _i;
  columnCount = buffer.readUInt16LE() / 2;
  orderColumns = [];
  for (c = _i = 1; 1 <= columnCount ? _i <= columnCount : _i >= columnCount; c = 1 <= columnCount ? ++_i : --_i) {
    orderColumns.push(buffer.readUInt16LE());
  }
  return {
    name: 'ORDER',
    event: 'order',
    orderColumns: orderColumns
  };
};

module.exports = parser;
