Class OnHeapCoder

java.lang.Object
org.nustaq.serialization.simpleapi.OnHeapCoder
All Implemented Interfaces:
FSTCoder

public class OnHeapCoder
extends Object
implements FSTCoder
Created by ruedi on 13.11.14. A coder writing fast binary encoding using unsafe to an underlying byte array ZERO COPY. Future version may choose to operate on DirectByteBuffer in case unsafe vanishes Note there is some copied code from OffHeaüCoder to avoid losing performance caused by polymorphic method dispatch. *********************************************************************** USE ONLY IF DEFAULTCODER (no unsafe) HAS BEEN PROVEN TO SLOW YOU DOWN. ***********************************************************************