encoder.js
function pickStream(encoder, t) {

	// Handle type
	switch (t) {
		case NUMTYPE.UINT8:
		case NUMTYPE.INT8:
			return encoder.stream8;
		case NUMTYPE.UINT16:
		case NUMTYPE.INT16:
			return encoder.stream16;
		case NUMTYPE.UINT32:
		case NUMTYPE.INT32:
		case NUMTYPE.FLOAT32:
			return encoder.stream32;
		case NUMTYPE.FLOAT64:
			return encoder.stream64;
	}

}
function pickStream(encoder, t) {

	// Handle type
	switch (t) {
		case NUMTYPE.UINT8:
		case NUMTYPE.INT8:
			return encoder.stream8;
		case NUMTYPE.UINT16:
		case NUMTYPE.INT16:
			return encoder.stream16;
		case NUMTYPE.UINT32:
		case NUMTYPE.INT32:
		case NUMTYPE.FLOAT32:
			return encoder.stream32;
		case NUMTYPE.FLOAT64:
			return encoder.stream64;
	}

}
function pickStream ( encoder , t ) { // Handle type switch ( t ) { case NUMTYPE . UINT8 : case NUMTYPE . INT8 : return encoder . stream8 ; case NUMTYPE . UINT16 : case NUMTYPE . INT16 : return encoder . stream16 ; case NUMTYPE . UINT32 : case NUMTYPE . INT32 : case NUMTYPE . FLOAT32 : return encoder . stream32 ; case NUMTYPE . FLOAT64 : return encoder . stream64 ; } }
Select an encoder according to bit size
Select an encoder according to bit size