code: function (valueKey, signed) {
    return function (bytes) {
      var result = {};
      result[valueKey] = misc.bufferToInt(bytes, signed);
      return result;
    };
  }
docs: build a function that takes in some bytes, parses them as an integer, and returns an object with that value assigned to the given key.