lib/array.js
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)
}
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)
}
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 ) }
Most likely invoked when passing an array instance as an argument to an FFI'd
function.
Most likely invoked when passing an array instance as an argument to an FFI d function .