package anastore.store;

/**
 * An object that can be represented on disk as a fixed-size array of
 * bytes.
 */
public interface Storable
{
    /**
     * Return the byte size of this objects data representation.  The
     * value returned by this must not change over time.
     */
    public int getDataSize();
    /**
     * Return the byte representation of this object.  The size of
     * this array must be the value returned by {@link
     * #getDataSize()}.
     */
    public byte[] getData();
}
