Examples of ZeroPaddedString


Examples of starlight.taliis.core.ZeroPaddedString

    buff.position(data);
    index=new int[count];
    entrys = new ZeroPaddedString[count];
    for(int i=0; i<count; i++) {
      index[i]=buff.position()-8;
      entrys[i] = new ZeroPaddedString(buff);
    }
    length=entrys.length;

    // push
    pointer.position( pointer.position() + buff.limit());
View Full Code Here

Examples of starlight.taliis.core.ZeroPaddedString

   * ::Rase the nModels in MOHD!
   * @param text
   * @return file index of the new string
   */
  public int addString(String text) {
    ZeroPaddedString tmp[] new ZeroPaddedString[length+1];
    int[] indices = new int[length+1];
    if(length!=0)
    for(int c=0; c<length; c++){
      tmp[c] = entrys[c];
      indices[c] = index[c];
    }
    indices[length]=buff.position()-8;
    /*int temp=0;
    if((text.length()%16)!=0)
      temp= 16-(text.length()%16);*/
     
      tmp[length] = new ZeroPaddedString(text);
      //}
    entrys = tmp;
    index=indices;
    length++;
    size+=text.length()+1;
View Full Code Here

Examples of starlight.taliis.core.ZeroPaddedString

    buff.position(data);
    index=new int[count];
    entrys = new ZeroPaddedString[count];
    for(int i=0; i<count; i++) {
      index[i]=buff.position()-8;
      entrys[i] = new ZeroPaddedString(buff);
    }
    length=entrys.length;

    // push
    pointer.position( pointer.position() + buff.limit());
View Full Code Here

Examples of starlight.taliis.core.ZeroPaddedString

   * Adds new string to our filenames list
   * @return file index of the new string
   */
  public int addString(String text) {
    int[] indices = new int[length+1];
    ZeroPaddedString tmp[] new ZeroPaddedString[length+1];
    for(int c=0; c<length; c++){
      indices[c] = index[c];
      tmp[c] = entrys[c];
    }
    indices[length]=buff.position()-8;
    tmp[length] = new ZeroPaddedString(text);
   
    entrys = tmp;
    index=indices;
    haschanged=true;
    length++;
View Full Code Here

Examples of starlight.taliis.core.ZeroPaddedString

   
    // catch strings
    buff.position(strstart);
    entrys = new ZeroPaddedString[count];
    for(int i=0; i<count; i++) {
      entrys[i] = new ZeroPaddedString(buff);
    }

    // push
    pointer.position( pointer.position() + buff.limit());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.