default ByteBuffer serialize(H typeHandler,T value){
  ByteBuffer buffer=ByteBuffer.allocate(size(typeHandler,value));
  serialize(typeHandler,value,buffer);
  return buffer;
}

default ByteBuffer serialize ( H typeHandler , T value ) { ByteBuffer buffer = ByteBuffer . allocate ( size ( typeHandler , value ) ) ; serialize ( typeHandler , value , buffer ) ; return buffer ; }
serialize to a byte buffer
