Package com.hazelcast.nio

Examples of com.hazelcast.nio.DynamicByteBuffer.position()


            byte[] header = data.getHeader();
            PortableDataOutput output = (PortableDataOutput) out;
            DynamicByteBuffer headerBuffer = output.getHeaderBuffer();
            out.writeInt(header.length);
            out.writeInt(headerBuffer.position());
            headerBuffer.put(header);
        }
    }

    protected void writeDataInternal(ObjectDataOutput out, Data data) throws IOException {
View Full Code Here


        ClassDefinition cd = context.lookupOrRegisterClassDefinition(p);

        PortableDataOutput output = (PortableDataOutput) out;
        DynamicByteBuffer headerBuffer = output.getHeaderBuffer();

        int pos = headerBuffer.position();
        out.writeInt(pos);

        headerBuffer.putInt(cd.getFactoryId());
        headerBuffer.putInt(cd.getClassId());
        headerBuffer.putInt(cd.getVersion());
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.