code: function setRef (buffer, offset, value) {
    debug('Array reference "type" setter for buffer at offset', offset)
    var ptr
    if (value instanceof this) {
      ptr = value.buffer
    } else {
      ptr = new this(value).buffer
    }
    _ref.writePointer(buffer, offset, ptr)
  }
docs: Most likely invoked when passing an array instance as an argument to an FFI'd
  function.