UNPKG

arquero-arrow

Version:

Arrow serialization support for Arquero.

9 lines (8 loc) 242 B
import { array } from './util'; export default function(type, length) { const data = array(type.ArrayType, length); return { set(value, index) { data[index] = value; }, data: () => ({ type, length, buffers: [null, data] }) }; }