def _fread3_many(fobj, n):
 (b1, b2, b3) = np.fromfile(fobj, '>u1', (3 * n)).reshape((-1), 3).astype(np.int).T
 return (((b1 << 16) + (b2 << 8)) + b3)

def _fread3_many ( fobj , n ) : ( b1 , b2 , b3 ) = np . fromfile ( fobj , '>u1' , ( 3 * n ) ) . reshape ( ( - 1 ) , 3 ) . astype ( np . int ) . T return ( ( ( b1 << 16 ) + ( b2 << 8 ) ) + b3 )
read 3-byte ints from an open binary file object .