static DirectCompactUnorderedSketch wrapInstance ( final Memory srcMem , final long seed ) { final short memSeedHash = srcMem . getShort ( SEED_HASH_SHORT ) ; final short computedSeedHash = computeSeedHash ( seed ) ; checkSeedHashes ( memSeedHash , computedSeedHash ) ; return new DirectCompactUnorderedSketch ( srcMem ) ; }
Wraps the given Memory which must be a SerVer 3 unordered Compact Sketch image . Must check the validity of the Memory before calling .