Package com.hazelcast.nio

Examples of com.hazelcast.nio.DynamicByteBuffer


        }

        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());

        DefaultPortableWriter writer = new DefaultPortableWriter(this, output, cd);
        p.writePortable(writer);
        writer.end();
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.nio.DynamicByteBuffer

Copyright © 2018 www.massapicom. 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.