lib/array.js
function set (buffer, offset, value) {
  debug('Array "type" setter for buffer at offset', buffer, offset, value)
  var array = this.get(buffer, offset)
  var isInstance = value instanceof this
  if (isInstance || isArray(value)) {
    for (var i = 0; i < value.length; i++) {
      array[i] = value[i]
    }
  } else {
    throw new Error('not sure how to set into Array: ' + value)
  }
}
function set (buffer, offset, value) {
  debug('Array "type" setter for buffer at offset', buffer, offset, value)
  var array = this.get(buffer, offset)
  var isInstance = value instanceof this
  if (isInstance || isArray(value)) {
    for (var i = 0; i < value.length; i++) {
      array[i] = value[i]
    }
  } else {
    throw new Error('not sure how to set into Array: ' + value)
  }
}
function set ( buffer , offset , value ) { debug ( 'Array "type" setter for buffer at offset' , buffer , offset , value ) var array = this . get ( buffer , offset ) var isInstance = value instanceof this if ( isInstance || isArray ( value ) ) { for ( var i = 0 ; i < value . length ; i ++ ) { array [ i ] = value [ i ] } } else { throw new Error ( 'not sure how to set into Array: ' + value ) } }
The "set" function of the Array "type" interface.
Most likely invoked when setting within a "ref-struct" type.
The set function of the Array type interface . Most likely invoked when setting within a ref - struct type .