Code example for MappedByteBuffer

Methods: force

0
        } 
    } 
 
    public void syncIndex() { 
        try { 
            mIndexBuffer.force();
        } catch (Throwable t) {
            Log.w(TAG, "sync index failed", t);
        } 
    } 
 
    public void syncAll() { 
        syncIndex(); 
        try { 
            mDataFile0.getFD().sync();
        } catch (Throwable t) {
            Log.w(TAG, "sync data file 0 failed", t);
        } 
        try { 
            mDataFile1.getFD().sync();
        } catch (Throwable t) {