mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Merge various proto utils together in core-util-jvm.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user