Examples of readShort()


Examples of com.jme3.export.InputCapsule.readShort()

    public void read(JmeImporter im) throws IOException {
        super.read(im);
        InputCapsule ic = im.getCapsule(this);
        size = ic.readInt("size", 16);
        totalSize = ic.readInt("totalSize", 16);
        quadrant = ic.readShort("quadrant", (short)0);
        stepScale = (Vector3f) ic.readSavable("stepScale", Vector3f.UNIT_XYZ);
        offset = (Vector2f) ic.readSavable("offset", Vector3f.UNIT_XYZ);
        offsetAmount = ic.readFloat("offsetAmount", 0);
        //lodCalculator = (LodCalculator) ic.readSavable("lodCalculator", new DistanceLodCalculator());
        //lodCalculator.setTerrainPatch(this);
View Full Code Here

Examples of com.lightcrafts.utils.file.OrderableRandomAccessFile.readShort()

        // the TIFF file ourselves so we know it's valid.
        //
        final OrderableRandomAccessFile file =
            new OrderableRandomAccessFile( fileName, "rw" );
        try {
            if ( file.readShort() == TIFF_LITTLE_ENDIAN )
                file.order( ByteOrder.LITTLE_ENDIAN );
            file.seek( TIFF_HEADER_SIZE - TIFF_INT_SIZE );
            int ifdOffset = file.readInt();
            while ( ifdOffset > 0 ) {
                file.seek( ifdOffset );
View Full Code Here

Examples of com.lowagie.text.pdf.codec.wmf.InputMeta.readShort()

            InputMeta in = new InputMeta(is);
            if (in.readInt() != 0x9AC6CDD7)  {
                throw new BadElementException(MessageLocalization.getComposedMessage("1.is.not.a.valid.placeable.windows.metafile", errorID));
            }
            in.readWord();
            int left = in.readShort();
            int top = in.readShort();
            int right = in.readShort();
            int bottom = in.readShort();
            int inch = in.readWord();
            dpiX = 72;
View Full Code Here

Examples of com.mobixess.jodb.core.io.IRandomAccessDataBuffer.readShort()

    };
   
    public static boolean compareToPersistentValues(JODBSession session, Field[] fields, int[] fieldsIDs, Object currentObject, IOTicket ioTicket, ObjectDataContainer headerData ) throws IOException{
        boolean[] processedFields = new boolean[fieldsIDs.length];
        IRandomAccessDataBuffer in = ioTicket.getRandomAccessBuffer();
        short classNameIDs = in.readShort();
        for (int i = 0; i < classNameIDs; i++) {
            in.readShort();
        }
       
        //null fields no longer persisted
View Full Code Here

Examples of com.mobixess.jodb.core.io.IRandomAccessDataBuffer.readShort()

    public static boolean compareToPersistentValues(JODBSession session, Field[] fields, int[] fieldsIDs, Object currentObject, IOTicket ioTicket, ObjectDataContainer headerData ) throws IOException{
        boolean[] processedFields = new boolean[fieldsIDs.length];
        IRandomAccessDataBuffer in = ioTicket.getRandomAccessBuffer();
        short classNameIDs = in.readShort();
        for (int i = 0; i < classNameIDs; i++) {
            in.readShort();
        }
       
        //null fields no longer persisted
//        if(headerData.hasNullFields()){
//            int nullFieldsTotal = in.readShort()&0xffff;
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.fs.OFile.readShort()

      // FOUND HOLE
      return -1;

    final long timer = OProfiler.getInstance().startChrono();

    final short clusterId = file.readShort(pos[1] + OConstants.SIZE_INT);
    final long clusterPosition = file.readLong(pos[1] + OConstants.SIZE_INT + OConstants.SIZE_SHORT);

    final byte[] content = new byte[recordSize];
    file.read(pos[1] + RECORD_FIX_SIZE, content, recordSize);
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.fs.OFile.readShort()

      final long[] pos = getRelativePosition(iPosition);

      final OFile file = files[(int) pos[0]];
      long p = pos[1];

      iPPosition.dataSegment = file.readShort(p);
      iPPosition.dataPosition = file.readLong(p += OConstants.SIZE_SHORT);
      iPPosition.type = file.readByte(p += OConstants.SIZE_LONG);
      iPPosition.version = file.readInt(p += OConstants.SIZE_BYTE);
      return iPPosition;
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.fs.OFile.readShort()

      final long[] pos = getRelativePosition(position);
      final OFile file = files[(int) pos[0]];
      long p = pos[1];

      // SAVE THE OLD DATA AND RETRIEVE THEM TO THE CALLER
      iPPosition.dataSegment = file.readShort(p);
      iPPosition.dataPosition = file.readLong(p += OConstants.SIZE_SHORT);
      iPPosition.type = file.readByte(p += OConstants.SIZE_LONG);
      iPPosition.version = file.readInt(p += OConstants.SIZE_BYTE);

      holeSegment.pushPosition(position);
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.readShort()

          endRequest(network);
        }

        try {
          beginResponse(network);
          final int clusterId = network.readShort();

          final OClusterRemote cluster = new OClusterRemote();
          cluster.configure(this, clusterId, iClusterName.toLowerCase());

          if (clusters.length <= clusterId)
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryClient.readShort()

      final OChannelBinaryClient network = storage.beginRequest(OChannelBinaryProtocol.REQUEST_CONFIG_LIST);
      storage.endRequest(network);

      try {
        storage.beginResponse(network);
        final int num = network.readShort();
        for (int i = 0; i < num; ++i)
          config.put(network.readString(), network.readString());
      } finally {
        storage.endResponse(network);
      }
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.