2022-01-30 21:00:16 +00:00
|
|
|
package love.distributedrebirth.numberxd;
|
2022-01-30 20:50:19 +00:00
|
|
|
|
2022-01-30 21:00:16 +00:00
|
|
|
import love.distributedrebirth.numberxd.base2t.BaseNumberTyte;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseAppender;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseIterator;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.T12PartUncial;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.V009TyteBaseAppender;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.V009TyteBaseIterator;
|
2022-01-30 20:50:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Holds an 864 bit fraction in stereo 6D.
|
|
|
|
*
|
|
|
|
* @author willemtsade ©Δ∞ 仙上主天
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class GroßGetậl6D implements BaseNumberTyte<GroßGetậl6D> {
|
|
|
|
|
|
|
|
public static int BIT_COUNT = GroßGetậl1D.BIT_COUNT * T12PartUncial.LENGTH;
|
|
|
|
private GroßGetậl1D[] values = new GroßGetậl1D[T12PartUncial.LENGTH];
|
|
|
|
|
|
|
|
public GroßGetậl6D() {
|
|
|
|
for (int i=0;i<T12PartUncial.LENGTH;i++) {
|
|
|
|
this.values[i] = new GroßGetậl1D();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public GroßGetậl6D(T08PartOctalBaseIterator values) {
|
|
|
|
for (int i=0;i<T12PartUncial.LENGTH;i++) {
|
|
|
|
this.values[i] = new GroßGetậl1D(values);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public GroßGetậl6D(V009TyteBaseIterator values) {
|
|
|
|
for (int i=0;i<T12PartUncial.LENGTH;i++) {
|
|
|
|
this.values[i] = new GroßGetậl1D(values);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public GroßGetậl1D getValue(T12PartUncial part) {
|
|
|
|
return values[part.ordinal()];
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setValue(T12PartUncial part, GroßGetậl1D value) {
|
|
|
|
values[part.ordinal()] = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getBitCount() {
|
|
|
|
return BIT_COUNT;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public GroßGetậl6D toClone() {
|
2022-01-31 12:15:04 +00:00
|
|
|
return new GroßGetậl6D(iteratorOctalsByClone());
|
2022-01-30 20:50:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2022-01-31 12:15:04 +00:00
|
|
|
public void fillOctalsByClone(T08PartOctalBaseAppender appender) {
|
|
|
|
T12PartUncial.forEach(v -> getValue(v).fillOctalsByClone(appender));
|
2022-01-30 20:50:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2022-01-31 12:15:04 +00:00
|
|
|
public void fillTytesByReference(V009TyteBaseAppender appender) {
|
|
|
|
T12PartUncial.forEach(v -> getValue(v).fillTytesByReference(appender));
|
2022-01-30 20:50:19 +00:00
|
|
|
}
|
|
|
|
}
|