
org.factcenter.pathORam.BlockStorageBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of inchworm Show documentation
Show all versions of inchworm Show documentation
Secure computation, one step at a time.
The newest version!
package org.factcenter.pathORam;
/**
* @author mikegarts
*
*/
public abstract class BlockStorageBase implements BlockStorage {
private final int blockSizeBits;
private final int blockCount;
/**
* @param blockSize
* block size in bytes
* @param blockCount
* storage's capacity in blocks
*/
public BlockStorageBase(int blockSize, int blockCount) {
this.blockCount = blockCount;
this.blockSizeBits = blockSize;
}
@Override
public int getBlockSizeBits() {
return blockSizeBits;
}
@Override
public int getBlockCount() {
return blockCount;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy