encoder.js
function encodeArray( encoder, data ) {
	encoder.log(LOG.PRM, "array, len="+data.length+", peek="+data[0]);
	
	// Check for empty array
	if (data.length === 0) {
		encodeArray_EMPTY( encoder );
		return;
	}

	// Get typed array typed
	var tt = getTypedArrayType(data);

	// Check for numerical array
	if ( tt <= NUMTYPE.NUMERIC ) {
		encodeArray_Numeric( encoder, data, tt );
	} else {
		encodeArray_Primitive( encoder, data );
	}

}
function encodeArray( encoder, data ) {
	encoder.log(LOG.PRM, "array, len="+data.length+", peek="+data[0]);
	
	// Check for empty array
	if (data.length === 0) {
		encodeArray_EMPTY( encoder );
		return;
	}

	// Get typed array typed
	var tt = getTypedArrayType(data);

	// Check for numerical array
	if ( tt <= NUMTYPE.NUMERIC ) {
		encodeArray_Numeric( encoder, data, tt );
	} else {
		encodeArray_Primitive( encoder, data );
	}

}
function encodeArray ( encoder , data ) { encoder . log ( LOG . PRM , "array, len=" + data . length + ", peek=" + data [ 0 ] ) ; // Check for empty array if ( data . length === 0 ) { encodeArray_EMPTY ( encoder ) ; return ; } // Get typed array typed var tt = getTypedArrayType ( data ) ; // Check for numerical array if ( tt <= NUMTYPE . NUMERIC ) { encodeArray_Numeric ( encoder , data , tt ) ; } else { encodeArray_Primitive ( encoder , data ) ; } }
Encode the specified array
Encode the specified array