compile
This commit is contained in:
parent
189b791c5c
commit
5209386fc1
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class StringLengthPrefixEncoding private constructor() {
|
||||||
private const val LENGTH_BYTES = 2
|
private const val LENGTH_BYTES = 2
|
||||||
|
|
||||||
fun parseKeys(keys: Array<String>, payload: ByteArray): Array<ByteArray> {
|
fun parseKeys(keys: Array<String>, payload: ByteArray): Array<ByteArray> {
|
||||||
val ret = Array<>(keys.size, { ByteArray(0) })
|
val ret = Array(keys.size, { ByteArray(0) })
|
||||||
var remaining = payload
|
var remaining = payload
|
||||||
for ((index, key) in keys.withIndex()) {
|
for ((index, key) in keys.withIndex()) {
|
||||||
when {
|
when {
|
||||||
|
|
Loading…
Reference in a new issue