Merge various proto utils together in core-util-jvm.

This commit is contained in:
Greyson Parrelli
2024-09-20 23:29:08 -04:00
parent 5b69d98579
commit ec49352635
17 changed files with 122 additions and 136 deletions

View File

@@ -1,19 +0,0 @@
/*
* Copyright 2023 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
@file:JvmName("ProtoUtil")
import okio.ByteString
object ProtoUtil {
fun ByteString?.isNotEmpty(): Boolean {
return this != null && this.size > 0
}
fun ByteString?.isNullOrEmpty(): Boolean {
return this == null || this.size == 0
}
}