CBOR is a Java implementation of IETF RFC7049 (see http://tools.ietf.org/html/rfc7049).
Encode negative integers Encode integer values using smallest representation e.g. writeShort(8) or writeLong(8) should put one byte on the output stream.
Implement java.nio style buffers and channels Implement object serialization
Encoding positive integer values