code: function hexTypeFactory (serizalizer, size, name) {
    return Object.defineProperties({}, {
      size: {
        get: () => () => size,
        enumerable: true
      },
      name: {
        get: () => name,
        enumerable: true
      },
      serialize: {
        get: () => serizalizer
      }
    })
  }
docs: Factory for building Hex Types
  
  @param {function(value, buffer, from)} serizalizer function accepting value, buffer, position and returns modified buffer
  @param {number} size type size in bytes
  @param {string} name type name to distinguish between types
  @returns {Object} hex type