Package org.lilyproject.bytes.impl

Examples of org.lilyproject.bytes.impl.DataInputImpl.readBytes()


        byte[] data = dataOutput.toByteArray();
        DataInput dataInput = new DataInputImpl(data);
        Assert.assertEquals(b, dataInput.readBoolean());
        Assert.assertEquals(bytes[0], dataInput.readByte());
        Assert.assertArrayEquals(bytes, dataInput.readBytes(10));
        Assert.assertEquals(d, dataInput.readDouble(), 0.0001);
        Assert.assertEquals(f, dataInput.readFloat(), 0.0001);
        Assert.assertEquals(i, dataInput.readInt());
        Assert.assertEquals(l, dataInput.readLong());
        Assert.assertEquals(s, dataInput.readShort());
View Full Code Here


        final Set<DependencyEntry> result = new HashSet<DependencyEntry>(nDependencies);

        while (result.size() < nDependencies) {
            final int tableLength = dataInput.readInt();
            final String table = Bytes.toString(dataInput.readBytes(tableLength));
            final int masterBytesLength = dataInput.readInt();
            final byte[] masterBytes = dataInput.readBytes(masterBytesLength);

            final DerefMapVariantPropertiesPattern variantPropertiesPattern =
                    deserializeVariantPropertiesPattern(dataInput);
View Full Code Here

        while (result.size() < nDependencies) {
            final int tableLength = dataInput.readInt();
            final String table = Bytes.toString(dataInput.readBytes(tableLength));
            final int masterBytesLength = dataInput.readInt();
            final byte[] masterBytes = dataInput.readBytes(masterBytesLength);

            final DerefMapVariantPropertiesPattern variantPropertiesPattern =
                    deserializeVariantPropertiesPattern(dataInput);

            result.add(new DependencyEntry(new AbsoluteRecordIdImpl(table,
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.