code: function serializer (encoder, validator) {
    return (value, buffer, from) => encoder(validator(value), buffer, from)
  }
docs: Common serializer
  
  @param {function(name, size, value)} validator hexadecimal validator
  @param {function(value, buffer, from)} encoder function accepting value, buffer, position and returns modified buffer
  @returns {function(value, buffer, from)} encoder wrapper
  @throws {TypeError} in case of validation break
  @private