mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 03:35:52 +00:00
VarInt: remove superfluous and bizarrely named encodeBE method.
This commit is contained in:
parent
2f0dfd5c1b
commit
31a4c08615
@ -97,11 +97,6 @@ public class VarInt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public byte[] encode() {
|
public byte[] encode() {
|
||||||
return encodeBE();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public byte[] encodeBE() {
|
|
||||||
if (isLessThanUnsigned(value, 253)) {
|
if (isLessThanUnsigned(value, 253)) {
|
||||||
return new byte[]{(byte) value};
|
return new byte[]{(byte) value};
|
||||||
} else if (isLessThanUnsigned(value, 65536)) {
|
} else if (isLessThanUnsigned(value, 65536)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user