export function enumerate < T > ( arr ) { return arr . map ( ( v , i ) => [ i , v ] ) ; } export function growBufferSize ( buf , size ) { const glow = Buffer . alloc ( size ) ; buf . copy ( glow ) ; return glow ; } export function Int ( v ) { return parseInt ( v . toString ( ) , 10 ) ; }