Examples of writeChar()


Examples of com.higherfrequencytrading.chronicle.Excerpt.writeChar()

                        excerpt.readLong();
                        excerpt.readDouble();
                        excerpt.finish();

                        excerpt2.startExcerpt(6);
                        excerpt2.writeChar('R');
                        excerpt2.writeInt(n);
                        excerpt2.finish();
                    }
                } catch (IOException e) {
                    e.printStackTrace();
View Full Code Here

Examples of com.higherfrequencytrading.chronicle.Excerpt.writeChar()

                            assertEquals(i, n);
                        excerpt.readChars(sb);
                        excerpt.finish();

                        excerpt2.startExcerpt(8);
                        excerpt2.writeChar('R');
                        excerpt2.writeInt(n);
                        excerpt2.writeShort(-1);
                        excerpt2.finish();
                    }
                } catch (IOException e) {
View Full Code Here

Examples of com.higherfrequencytrading.chronicle.Excerpt.writeChar()

                            assertEquals(i, n);
                        excerpt.readChars(sb);
                        excerpt.finish();

                        excerpt2.startExcerpt(8);
                        excerpt2.writeChar('R');
                        excerpt2.writeInt(n);
                        excerpt2.writeShort(-1);
                        excerpt2.finish();
                    }
                } catch (IOException e) {
View Full Code Here

Examples of com.higherfrequencytrading.chronicle.Excerpt.writeChar()

        Excerpt writer = tsc.createExcerpt();
        long[] longs = {Long.MIN_VALUE, Integer.MIN_VALUE, Short.MIN_VALUE, Character.MIN_VALUE, Byte.MIN_VALUE,
                Long.MAX_VALUE, Integer.MAX_VALUE, Short.MAX_VALUE, Character.MAX_CODE_POINT, Character.MAX_VALUE, Byte.MAX_VALUE};
        for (long l : longs) {
            writer.startExcerpt(12);
            writer.writeChar('T');
            writer.writeStopBit(l);
            writer.finish();

            reader.nextIndex();
            reader.readChar();
View Full Code Here

Examples of com.higherfrequencytrading.chronicle.Excerpt.writeChar()

            long l2 = reader.readStopBit();
            reader.finish();
            assertEquals(l, l2);
        }
        writer.startExcerpt(longs.length * 10);
        writer.writeChar('t');
        for (long l : longs)
            writer.writeStopBit(l);
        writer.finish();

        reader.nextIndex();
View Full Code Here

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

    try {
      Stream stream = new Stream();
      stream.writeBit(1);
     
      for (char ch : sampleChars()) {
        stream.writeChar(ch);
      }
     
      stream.writeBit(1);
     
      stream.readBit();
View Full Code Here

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

            return;
        }
        ByteBuf buf = ctx.alloc().buffer();
        while (in.readableBytes() >= 2) {
            char c = in.readChar();
            buf.writeChar(Character.toLowerCase(c));
        }
        out.add(buf);
    }
}
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

        FastMultiByteArrayOutputStream out = new FastMultiByteArrayOutputStream(4096);
        DataOutputStream data = new DataOutputStream(out);
        Random rand = new Random(22222);
        for(int times = 0; times < 10; times++) {
            for(int i = 0; i < 2048; i++) {
                data.writeChar(rand.nextInt());
            }
            probe(out.toByteArray_clear());
        }
    }
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

        FastMultiByteArrayOutputStream out = new FastMultiByteArrayOutputStream(4096);
        DataOutputStream data = new DataOutputStream(out);
        Random rand = new Random(22222);
        for(int times = 0; times < 10; times++) {
            for(int i = 0; i < 4096; i++) {
                data.writeChar(rand.nextInt());
            }
            probe(out.toByteArray_clear());
        }
    }
View Full Code Here

Examples of java.io.DataOutputStream.writeChar()

      while (iterA.hasNext())
        outStream.writeShort(iterA.getShortNext());

    } else if (classType == char.class) {
      while (iterA.hasNext())
        outStream.writeChar(iterA.getCharNext());

    } else if (classType == byte.class) {
      while (iterA.hasNext())
        outStream.writeByte(iterA.getByteNext());
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.