src/loader/DictionaryLoader.js
function (callback) {
            async.map([ "tid.dat.gz", "tid_pos.dat.gz", "tid_map.dat.gz" ], function (filename, _callback) {
                loadArrayBuffer(path.join(dic_path, filename), function (err, buffer) {
                    if(err) {
                        return _callback(err);
                    }
                    _callback(null, buffer);
                });
            }, function (err, buffers) {
                if(err) {
                    return callback(err);
                }
                var token_info_buffer = new Uint8Array(buffers[0]);
                var pos_buffer = new Uint8Array(buffers[1]);
                var target_map_buffer = new Uint8Array(buffers[2]);

                dic.loadTokenInfoDictionaries(token_info_buffer, pos_buffer, target_map_buffer);
                callback(null);
            });
        }
function (callback) {
            async.map([ "tid.dat.gz", "tid_pos.dat.gz", "tid_map.dat.gz" ], function (filename, _callback) {
                loadArrayBuffer(path.join(dic_path, filename), function (err, buffer) {
                    if(err) {
                        return _callback(err);
                    }
                    _callback(null, buffer);
                });
            }, function (err, buffers) {
                if(err) {
                    return callback(err);
                }
                var token_info_buffer = new Uint8Array(buffers[0]);
                var pos_buffer = new Uint8Array(buffers[1]);
                var target_map_buffer = new Uint8Array(buffers[2]);

                dic.loadTokenInfoDictionaries(token_info_buffer, pos_buffer, target_map_buffer);
                callback(null);
            });
        }
function ( callback ) { async . map ( [ "tid.dat.gz" , "tid_pos.dat.gz" , "tid_map.dat.gz" ] , function ( filename , _callback ) { loadArrayBuffer ( path . join ( dic_path , filename ) , function ( err , buffer ) { if ( err ) { return _callback ( err ) ; } _callback ( null , buffer ) ; } ) ; } , function ( err , buffers ) { if ( err ) { return callback ( err ) ; } var token_info_buffer = new Uint8Array ( buffers [ 0 ] ) ; var pos_buffer = new Uint8Array ( buffers [ 1 ] ) ; var target_map_buffer = new Uint8Array ( buffers [ 2 ] ) ; dic . loadTokenInfoDictionaries ( token_info_buffer , pos_buffer , target_map_buffer ) ; callback ( null ) ; } ) ; }
Token info dictionaries
Token info dictionaries