Skip to content

Commit

Permalink
feat(api alignment): replacing withValue(...) with .payload(...)
Browse files Browse the repository at this point in the history
…on get queries
  • Loading branch information
DariusIMP committed Aug 16, 2024
1 parent b86d2c7 commit 2285d10
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions zenoh-kotlin/src/commonMain/kotlin/io/zenoh/protocol/IntoZBytes.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Copyright (c) 2023 ZettaScale Technology
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
//
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
//
// Contributors:
// ZettaScale Zenoh Team, <zenoh@zettascale.tech>
//

package io.zenoh.protocol

interface IntoZBytes {

fun into(): ZBytes

}

fun String.into(): ZBytes {
return ZBytes(this.toByteArray())
}

0 comments on commit 2285d10

Please sign in to comment.