Wait im stupid
This commit is contained in:
parent
5aa52383d8
commit
88ddc51254
@ -35,8 +35,7 @@ object DecimalCodec : Codec<Decimal> {
|
||||
ops.getIntStream(input).flatMap {
|
||||
try {
|
||||
DataResult.success(Pair(Decimal.fromByteArray(
|
||||
it.mapToObj { val v = it.toLong(); Stream.of(v and 0xFFL, (v and 0xFF00L) ushr 8, (v and 0xFF0000L) ushr 16, (v and 0xFF000000L) ushr 24) }
|
||||
.flatMap { it }
|
||||
it
|
||||
.collect(::ByteArrayList, { v, a -> v.add(a.toByte()) }, ByteArrayList::addAll)
|
||||
.toByteArray()
|
||||
), ops.empty()))
|
||||
|
Loading…
Reference in New Issue
Block a user