Converted to hex for V654Tath
This commit is contained in:
parent
eab290e6d4
commit
45e587bc53
|
@ -19,7 +19,7 @@ public class Base2Terminator {
|
|||
private static final int SHIFT_8 = 8;
|
||||
private static final int SHIFT_16 = 16;
|
||||
|
||||
public int base2ReadTong(InputStream input, List<V072Tong> output) throws IOException {
|
||||
public int base2ReadTong(InputStream input, List<V048Tong> output) throws IOException {
|
||||
int totalBytes = 0;
|
||||
byte[] data = new byte[BLOCK_TONG_SIZE];
|
||||
int readDataSize = 0; // per 9 bytes we have 24 octals for one V072Tong number
|
||||
|
@ -29,13 +29,13 @@ public class Base2Terminator {
|
|||
int v1 = data[3] + (data[4] << SHIFT_8) + (data[5] << SHIFT_16);
|
||||
int v2 = data[6] + (data[7] << SHIFT_8) + (data[8] << SHIFT_16);
|
||||
List<T08PartOctal> octals = base2ReadOctals(v0, v1, v2);
|
||||
output.add(new V072Tong(new T08PartOctalBaseIterator(octals.iterator())));
|
||||
output.add(new V048Tong(new T08PartOctalBaseIterator(octals.iterator())));
|
||||
totalBytes += BLOCK_TONG_SIZE;
|
||||
}
|
||||
return totalBytes;
|
||||
}
|
||||
|
||||
public int base2ReadTocta(InputStream input, List<V144Tocta> output) throws IOException {
|
||||
public int base2ReadTocta(InputStream input, List<V090Tocta> output) throws IOException {
|
||||
int totalBytes = 0;
|
||||
byte[] data = new byte[BLOCK_TOCTA_SIZE];
|
||||
int readDataSize = 0; // per 18 bytes we have 48 octals for one V144Tocta number
|
||||
|
@ -48,7 +48,7 @@ public class Base2Terminator {
|
|||
int v4 = data[12] + (data[13] << SHIFT_8) + (data[14] << SHIFT_16);
|
||||
int v5 = data[15] + (data[16] << SHIFT_8) + (data[17] << SHIFT_16);
|
||||
List<T08PartOctal> octals = base2ReadOctals(v0, v1, v2, v3, v4, v5);
|
||||
output.add(new V144Tocta(new T08PartOctalBaseIterator(octals.iterator())));
|
||||
output.add(new V090Tocta(new T08PartOctalBaseIterator(octals.iterator())));
|
||||
totalBytes += BLOCK_TOCTA_SIZE;
|
||||
}
|
||||
return totalBytes;
|
||||
|
@ -68,11 +68,11 @@ public class Base2Terminator {
|
|||
return octals;
|
||||
}
|
||||
|
||||
public int base2WriteTong(List<V072Tong> data, OutputStream output) throws IOException {
|
||||
public int base2WriteTong(List<V048Tong> data, OutputStream output) throws IOException {
|
||||
return base2Write(data, output);
|
||||
}
|
||||
|
||||
public int base2WriteTocta(List<V144Tocta> data, OutputStream output) throws IOException {
|
||||
public int base2WriteTocta(List<V090Tocta> data, OutputStream output) throws IOException {
|
||||
return base2Write(data, output);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 3 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 9 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
|
|
|
@ -1,28 +1,29 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 18 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
*/
|
||||
public final class V018Tord implements BaseNumberTyte<V018Tord> {
|
||||
public final class V012Tord implements BaseNumberTyte<V012Tord> {
|
||||
|
||||
public static int BIT_COUNT = V009Tyte.BIT_COUNT * T02PartBinary.LENGTH;
|
||||
private V009Tyte[] values = new V009Tyte[T02PartBinary.LENGTH];
|
||||
|
||||
public V018Tord() {
|
||||
public V012Tord() {
|
||||
this(new V009Tyte(), new V009Tyte());
|
||||
}
|
||||
|
||||
public V018Tord(T08PartOctalBaseIterator values) {
|
||||
public V012Tord(T08PartOctalBaseIterator values) {
|
||||
this(new V009Tyte(values), new V009Tyte(values));
|
||||
}
|
||||
|
||||
public V018Tord(V009TyteBaseIterator values) {
|
||||
public V012Tord(V009TyteBaseIterator values) {
|
||||
this(values.next(), values.next());
|
||||
}
|
||||
|
||||
private V018Tord(V009Tyte valueHigh, V009Tyte valueLow) {
|
||||
private V012Tord(V009Tyte valueHigh, V009Tyte valueLow) {
|
||||
setValue(T02PartBinary.PART_1, valueHigh);
|
||||
setValue(T02PartBinary.PART_2, valueLow);
|
||||
}
|
||||
|
@ -49,8 +50,8 @@ public final class V018Tord implements BaseNumberTyte<V018Tord> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public V018Tord toClone() {
|
||||
return new V018Tord(cloneIterator());
|
||||
public V012Tord toClone() {
|
||||
return new V012Tord(cloneIterator());
|
||||
}
|
||||
|
||||
@Override
|
|
@ -1,28 +1,29 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 27 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
*/
|
||||
public final class V027Temvig implements BaseNumberTyte<V027Temvig> {
|
||||
public final class V01BTemvig implements BaseNumberTyte<V01BTemvig> {
|
||||
|
||||
public static int BIT_COUNT = V009Tyte.BIT_COUNT * T03PartTrit.LENGTH;
|
||||
private V009Tyte[] values = new V009Tyte[T03PartTrit.LENGTH];
|
||||
|
||||
public V027Temvig() {
|
||||
public V01BTemvig() {
|
||||
this(new V009Tyte(), new V009Tyte(), new V009Tyte());
|
||||
}
|
||||
|
||||
public V027Temvig(T08PartOctalBaseIterator values) {
|
||||
public V01BTemvig(T08PartOctalBaseIterator values) {
|
||||
this(new V009Tyte(values), new V009Tyte(values), new V009Tyte(values));
|
||||
}
|
||||
|
||||
public V027Temvig(V009TyteBaseIterator values) {
|
||||
public V01BTemvig(V009TyteBaseIterator values) {
|
||||
this(values.next(), values.next(), values.next());
|
||||
}
|
||||
|
||||
private V027Temvig(V009Tyte valueHigh, V009Tyte valueMedium, V009Tyte valueLow) {
|
||||
private V01BTemvig(V009Tyte valueHigh, V009Tyte valueMedium, V009Tyte valueLow) {
|
||||
setValue(T03PartTrit.PART_1, valueHigh);
|
||||
setValue(T03PartTrit.PART_2, valueMedium);
|
||||
setValue(T03PartTrit.PART_3, valueLow);
|
||||
|
@ -42,8 +43,8 @@ public final class V027Temvig implements BaseNumberTyte<V027Temvig> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public V027Temvig toClone() {
|
||||
return new V027Temvig(cloneIterator());
|
||||
public V01BTemvig toClone() {
|
||||
return new V01BTemvig(cloneIterator());
|
||||
}
|
||||
|
||||
@Override
|
|
@ -1,37 +1,38 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 36 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
*/
|
||||
public final class V036Teger implements BaseNumberTyte<V036Teger> {
|
||||
public final class V024Teger implements BaseNumberTyte<V024Teger> {
|
||||
|
||||
public static int BIT_COUNT = V018Tord.BIT_COUNT * T02PartBinary.LENGTH;
|
||||
private V018Tord[] values = new V018Tord[T02PartBinary.LENGTH];
|
||||
public static int BIT_COUNT = V012Tord.BIT_COUNT * T02PartBinary.LENGTH;
|
||||
private V012Tord[] values = new V012Tord[T02PartBinary.LENGTH];
|
||||
|
||||
public V036Teger() {
|
||||
this(new V018Tord(), new V018Tord());
|
||||
public V024Teger() {
|
||||
this(new V012Tord(), new V012Tord());
|
||||
}
|
||||
|
||||
public V036Teger(T08PartOctalBaseIterator values) {
|
||||
this(new V018Tord(values), new V018Tord(values));
|
||||
public V024Teger(T08PartOctalBaseIterator values) {
|
||||
this(new V012Tord(values), new V012Tord(values));
|
||||
}
|
||||
|
||||
public V036Teger(V009TyteBaseIterator values) {
|
||||
this(new V018Tord(values), new V018Tord(values));
|
||||
public V024Teger(V009TyteBaseIterator values) {
|
||||
this(new V012Tord(values), new V012Tord(values));
|
||||
}
|
||||
|
||||
private V036Teger(V018Tord valueHigh, V018Tord valueLow) {
|
||||
private V024Teger(V012Tord valueHigh, V012Tord valueLow) {
|
||||
setValue(T02PartBinary.PART_1, valueHigh);
|
||||
setValue(T02PartBinary.PART_2, valueLow);
|
||||
}
|
||||
|
||||
public V018Tord getValue(T02PartBinary part) {
|
||||
public V012Tord getValue(T02PartBinary part) {
|
||||
return values[part.ordinal()];
|
||||
}
|
||||
|
||||
public void setValue(T02PartBinary part, V018Tord value) {
|
||||
public void setValue(T02PartBinary part, V012Tord value) {
|
||||
values[part.ordinal()] = value;
|
||||
}
|
||||
|
||||
|
@ -51,8 +52,8 @@ public final class V036Teger implements BaseNumberTyte<V036Teger> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public V036Teger toClone() {
|
||||
return new V036Teger(cloneIterator());
|
||||
public V024Teger toClone() {
|
||||
return new V024Teger(cloneIterator());
|
||||
}
|
||||
|
||||
@Override
|
|
@ -1,37 +1,38 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 72 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
*/
|
||||
public final class V072Tong implements BaseNumberTyte<V072Tong> {
|
||||
public final class V048Tong implements BaseNumberTyte<V048Tong> {
|
||||
|
||||
public static int BIT_COUNT = V036Teger.BIT_COUNT * T02PartBinary.LENGTH;
|
||||
private V036Teger[] values = new V036Teger[T02PartBinary.LENGTH];
|
||||
public static int BIT_COUNT = V024Teger.BIT_COUNT * T02PartBinary.LENGTH;
|
||||
private V024Teger[] values = new V024Teger[T02PartBinary.LENGTH];
|
||||
|
||||
public V072Tong() {
|
||||
this(new V036Teger(), new V036Teger());
|
||||
public V048Tong() {
|
||||
this(new V024Teger(), new V024Teger());
|
||||
}
|
||||
|
||||
public V072Tong(T08PartOctalBaseIterator values) {
|
||||
this(new V036Teger(values), new V036Teger(values));
|
||||
public V048Tong(T08PartOctalBaseIterator values) {
|
||||
this(new V024Teger(values), new V024Teger(values));
|
||||
}
|
||||
|
||||
public V072Tong(V009TyteBaseIterator values) {
|
||||
this(new V036Teger(values), new V036Teger(values));
|
||||
public V048Tong(V009TyteBaseIterator values) {
|
||||
this(new V024Teger(values), new V024Teger(values));
|
||||
}
|
||||
|
||||
private V072Tong(V036Teger valueHigh, V036Teger valueLow) {
|
||||
private V048Tong(V024Teger valueHigh, V024Teger valueLow) {
|
||||
setValue(T02PartBinary.PART_1, valueHigh);
|
||||
setValue(T02PartBinary.PART_2, valueLow);
|
||||
}
|
||||
|
||||
public V036Teger getValue(T02PartBinary part) {
|
||||
public V024Teger getValue(T02PartBinary part) {
|
||||
return values[part.ordinal()];
|
||||
}
|
||||
|
||||
public void setValue(T02PartBinary part, V036Teger value) {
|
||||
public void setValue(T02PartBinary part, V024Teger value) {
|
||||
values[part.ordinal()] = value;
|
||||
}
|
||||
|
||||
|
@ -53,8 +54,8 @@ public final class V072Tong implements BaseNumberTyte<V072Tong> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public V072Tong toClone() {
|
||||
return new V072Tong(cloneIterator());
|
||||
public V048Tong toClone() {
|
||||
return new V048Tong(cloneIterator());
|
||||
}
|
||||
|
||||
@Override
|
|
@ -1,37 +1,38 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 144 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
*/
|
||||
public final class V144Tocta implements BaseNumberTyte<V144Tocta> {
|
||||
public final class V090Tocta implements BaseNumberTyte<V090Tocta> {
|
||||
|
||||
public static int BIT_COUNT = V072Tong.BIT_COUNT * T02PartBinary.LENGTH;
|
||||
private V072Tong[] values = new V072Tong[T02PartBinary.LENGTH];
|
||||
public static int BIT_COUNT = V048Tong.BIT_COUNT * T02PartBinary.LENGTH;
|
||||
private V048Tong[] values = new V048Tong[T02PartBinary.LENGTH];
|
||||
|
||||
public V144Tocta() {
|
||||
this(new V072Tong(), new V072Tong());
|
||||
public V090Tocta() {
|
||||
this(new V048Tong(), new V048Tong());
|
||||
}
|
||||
|
||||
public V144Tocta(T08PartOctalBaseIterator values) {
|
||||
this(new V072Tong(values), new V072Tong(values));
|
||||
public V090Tocta(T08PartOctalBaseIterator values) {
|
||||
this(new V048Tong(values), new V048Tong(values));
|
||||
}
|
||||
|
||||
public V144Tocta(V009TyteBaseIterator values) {
|
||||
this(new V072Tong(values), new V072Tong(values));
|
||||
public V090Tocta(V009TyteBaseIterator values) {
|
||||
this(new V048Tong(values), new V048Tong(values));
|
||||
}
|
||||
|
||||
private V144Tocta(V072Tong valueHigh, V072Tong valueLow) {
|
||||
private V090Tocta(V048Tong valueHigh, V048Tong valueLow) {
|
||||
setValue(T02PartBinary.PART_1, valueHigh);
|
||||
setValue(T02PartBinary.PART_2, valueLow);
|
||||
}
|
||||
|
||||
public V072Tong getValue(T02PartBinary part) {
|
||||
public V048Tong getValue(T02PartBinary part) {
|
||||
return values[part.ordinal()];
|
||||
}
|
||||
|
||||
public void setValue(T02PartBinary part, V072Tong value) {
|
||||
public void setValue(T02PartBinary part, V048Tong value) {
|
||||
values[part.ordinal()] = value;
|
||||
}
|
||||
|
||||
|
@ -49,13 +50,13 @@ public final class V144Tocta implements BaseNumberTyte<V144Tocta> {
|
|||
.setValue(part.splitPartBinary(T04PartQuad.PART_4), value);
|
||||
}
|
||||
|
||||
public V018Tord getTordPart(T08PartOctal part) {
|
||||
public V012Tord getTordPart(T08PartOctal part) {
|
||||
return getValue(part.splitPartBinary(T03PartTrit.PART_1))
|
||||
.getValue(part.splitPartBinary(T03PartTrit.PART_2))
|
||||
.getValue(part.splitPartBinary(T03PartTrit.PART_3));
|
||||
}
|
||||
|
||||
public void setTordPart(T08PartOctal part, V018Tord value) {
|
||||
public void setTordPart(T08PartOctal part, V012Tord value) {
|
||||
getValue(part.splitPartBinary(T03PartTrit.PART_1))
|
||||
.getValue(part.splitPartBinary(T03PartTrit.PART_2))
|
||||
.setValue(part.splitPartBinary(T03PartTrit.PART_3), value);
|
||||
|
@ -67,8 +68,8 @@ public final class V144Tocta implements BaseNumberTyte<V144Tocta> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public V144Tocta toClone() {
|
||||
return new V144Tocta(cloneIterator());
|
||||
public V090Tocta toClone() {
|
||||
return new V090Tocta(cloneIterator());
|
||||
}
|
||||
|
||||
@Override
|
12
core/src/love/distributedrebirth/demo4d/base2t/V654Tath.java
Normal file
12
core/src/love/distributedrebirth/demo4d/base2t/V654Tath.java
Normal file
|
@ -0,0 +1,12 @@
|
|||
package love.distributedrebirth.demo4d.base2t;
|
||||
|
||||
/**
|
||||
* Holds an 1620 bit value.
|
||||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*
|
||||
*/
|
||||
public class V654Tath {
|
||||
|
||||
// TODO: 27(V01BTemvig) * T60Sexagesimal
|
||||
}
|
Loading…
Reference in a new issue