public static class Argon2BytesGenerator.FixedBlockPool extends java.lang.Object implements Argon2BytesGenerator.BlockPool
maxBlocks Argon2BytesGenerator.Block objects.
Excess blocks returned via #deallocate(Block) are dropped and
left for the garbage collector. The generator returns every block
zeroised, so this pool neither clears nor inspects what it recycles;
Argon2BytesGenerator.getBlockCount(int, int) gives the size that
recycles a whole run.| Constructor and Description |
|---|
FixedBlockPool(int maxBlocks) |
| Modifier and Type | Method and Description |
|---|---|
Argon2BytesGenerator.Block |
allocate() |
void |
deallocate(Argon2BytesGenerator.Block block) |
public Argon2BytesGenerator.Block allocate()
allocate in interface Argon2BytesGenerator.BlockPoolpublic void deallocate(Argon2BytesGenerator.Block block)
deallocate in interface Argon2BytesGenerator.BlockPool