Package starlight.taliis.core

Examples of starlight.taliis.core.memory


  /**
   *  Init out data in a seperate memory instance
   */
  private void initData() {
    buff.position(data);
    dataBlock = new memory(buff);
    dataBlock.buff.limit(getRecordSize()*getNRecords());
  }
 
View Full Code Here


    // string offset?
    strOffs = data + getRecordSize()*getNRecords();
   
    // init string table
    buff.position(strOffs);
    strTable = new memory(buff);

    // count and find all strings
    vStrings = new Vector<ZeroTerminatedString>();
    strTable.buff.position(0);
    while(strTable.buff.hasRemaining()) {
View Full Code Here

   
    // render offsets
    buff.putInt(strBlockSize, strTable.limit());
   
    // calculate new size
    memory tmp = new memory(data +
                dataBlock.limit() +
                strTable.limit()
              );
    // copy header
    buff.position(0);
    buff.limit(data);
    tmp.put( buff );
   
    // copy data field
    tmp.position(data);
    dataBlock.buff.position(0);
    tmp.put( dataBlock.buff );
   
    // copy strings
    strTable.buff.position(0);
    tmp.put( strTable.buff );
   
    // prevent
    buff = tmp.buff;

    // re init
View Full Code Here

   
    int rz = getRecordSize();
   
    // data before the deletion
    dataBlock.position(0);
    memory bfore = new memory(dataBlock.buff);
    bfore.buff.limit( startLine*rz );
    bfore.position(0);
   
    // data behind our deletion
    dataBlock.position( (startLine+lenght)*rz );
    memory after = new memory(dataBlock.buff);
    after.position(0);
   
    // new datablock
    dataBlock = new memory( dataBlock.limit() - (lenght*rz) );
   
    // copy data after deletion
    dataBlock.put(bfore.buff);
    dataBlock.put(after.buff);
   
View Full Code Here

public class chunkAnalisizer {
  memory obj;
 
  public chunkAnalisizer(String FileName) {
    // open memory interface for FileName
     obj = new memory( fileLoader.openBuffer(FileName) );
  }
View Full Code Here

TOP

Related Classes of starlight.taliis.core.memory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.