Examples of skipBytes()


Examples of com.jme3.util.LittleEndien.skipBytes()

//                    System.out.println("We have ACON. Next!");
                    nextInt = getNext(leIn);
                    while (nextInt >= 0) {
                        if (nextInt == 0x68696e61) {
//                            System.out.println("we have 'anih' header");
                            leIn.skipBytes(8); // internal struct length (always 36)
                            numIcons = leIn.readInt();
                            steps = leIn.readInt(); // number of blits for ani cycles
                            width = leIn.readInt();
                            height = leIn.readInt();
                            leIn.skipBytes(8);
View Full Code Here

Examples of com.peterhi.obsolete.Stream.skipBytes()

  @Test
  public void pSkipBytes_int() throws Exception {
    try {
      Stream stream = new Stream(sampleBytes());
      stream.writeBit(1);
      assertEquals(0, stream.skipBytes(0));
      assertEquals(1, stream.skipBytes(1));
      assertEquals(sampleBytes()[1], (byte )stream.read());
      assertEquals(7, stream.skipBytes(10));
      assertEquals(0, stream.skipBytes(0));
      assertEquals(1, stream.getData().readable());
View Full Code Here

Examples of davaguine.jmac.tools.ByteArrayReader.skipBytes()

        try {
            APEDescriptor header = new APEDescriptor();
            final ByteArrayReader reader = new ByteArrayReader(file, APE_DESCRIPTOR_BYTES - 16);
            header.cID = reader.readString(4, "US-ASCII");
            header.nVersion = reader.readUnsignedShort();
            reader.skipBytes(2);
            header.nDescriptorBytes = reader.readUnsignedInt();
            header.nHeaderBytes = reader.readUnsignedInt();
            header.nSeekTableBytes = reader.readUnsignedInt();
            header.nHeaderDataBytes = reader.readUnsignedInt();
            header.nAPEFrameDataBytes = reader.readUnsignedInt();
View Full Code Here

Examples of info.ata4.io.DataInputReader.skipBytes()

                            Vector3f vn = new Vector3f();
                            vn.setHalf(half);
                            vn.read(in);
                            normals.add(vn);
                            if (half && channel != null && channel.dimension == 4) {
                                in.skipBytes(2); // padding?
                            }
                            break;

                        case CHANNEL_COLORS:
                            Color32 c = new Color32();
View Full Code Here

Examples of info.ata4.io.DataOutputWriter.skipBytes()

        // write struct
        bb.put(bbStruct);
       
        // write padding
        out.skipBytes(padding);
       
        // write data
        bb.put(bbData);
    }
   
View Full Code Here

Examples of io.netty.buffer.ByteBuf.skipBytes()

                                case READING:
                                    int remaining = buffer.readableBytes();

                                    if (length > remaining) {
                                        length -= remaining;
                                        buffer.skipBytes(remaining);
                                    } else {
                                        buffer.skipBytes(length);
                                        ctx.writeAndFlush(new DatagramPacket(ACK.retain(1).resetReaderIndex(), message.sender()));
                                        state = State.WAIT_FOR_FIRST_BYTE_LENGTH;
                                        length = 0;
View Full Code Here

Examples of java.io.DataInput.skipBytes()

        int sig = din.readInt();
        if (sig != NCL2) {
            throw new UnsupportedOperationException("Unsupported structure type: "
                    + toSignatureString(sig) + ". Expected " + toSignatureString(NCL2));
        }
        din.skipBytes(8);
        int numColors = din.readInt();
        NamedColorSpace[] result = new NamedColorSpace[numColors];
        int numDeviceCoord = din.readInt();
        String prefix = readAscii(din, 32);
        String suffix = readAscii(din, 32);
View Full Code Here

Examples of java.io.DataInputStream.skipBytes()

        input.readFully(unicodeVersion);
        readcount += 4;
        if (headersize < readcount) {
            throw new IOException("Internal Error: Header size error");
        }
        input.skipBytes(headersize - readcount);

        if (bigendian != BIG_ENDIAN_ || charset != CHAR_SET_
            || charsize != CHAR_SIZE_
            || !Arrays.equals(dataFormatIDExpected, dataFormatID)
            || (authenticate != null
View Full Code Here

Examples of java.io.DataInputStream.skipBytes()

          byte[] src = new byte[l];
          dis.read(src, 0, l);
          sb.append(":");
          sb.append(escape(new String(src, 0, l, "UTF-8")));
        } else {
          dis.skipBytes(l);
        }
        sb.append('\n');
      }
      return sb.toString();
    } else {
View Full Code Here

Examples of java.io.DataInputStream.skipBytes()

        int sig = din.readInt();
        if (sig != NCL2) {
            throw new UnsupportedOperationException("Unsupported structure type: "
                    + toSignatureString(sig) + ". Expected " + toSignatureString(NCL2));
        }
        din.skipBytes(8);
        int numColors = din.readInt();
        NamedColorSpace[] result = new NamedColorSpace[numColors];
        int numDeviceCoord = din.readInt();
        String prefix = readAscii(din, 32);
        String suffix = readAscii(din, 32);
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.