static BytesStore<?,ByteBuffer> wrap(@NotNull ByteBuffer bb){
  return bb.isDirect() ? NativeBytesStore.wrap(bb) : HeapBytesStore.wrap(bb);
}

static BytesStore < ? , ByteBuffer > wrap ( @ NotNull ByteBuffer bb ) { return bb . isDirect ( ) ? NativeBytesStore . wrap ( bb ) : HeapBytesStore . wrap ( bb ) ; }
wraps a bytebuffer which can be either on heap or off heap .
