IWritable.java 387 B

12345678910111213141516171819
  1. package com.oblivm.backend.flexsc;
  2. // for compiler generated code
  3. public interface IWritable<T1 extends IWritable<T1, T2>, T2> {
  4. public int numBits();
  5. public T2[] getBits() throws Exception;
  6. public T1 newObj(T2[] data) throws Exception;
  7. default T1 fake() throws Exception {
  8. return newObj(getBits());
  9. };
  10. default T1 muxFake(T2 dummy) throws Exception {
  11. return fake();
  12. }
  13. }