nRF Connect Device Manager
Toggle table of contents
3.2.0
release
Target filter
release
Switch theme
Search in API
Skip to content
nRF Connect Device Manager
mcumgr-core
/
no.nordicsemi.android.mcumgr.util
/
CBOR
CBOR
open
class
CBOR
Members
Constructors
CBOR
Link copied to clipboard
constructor
(
)
Functions
get
Object
Link copied to clipboard
open
fun
<
T
>
getObject
(
data
:
@
NotNull
Array
<
Byte
>
,
@
NotNull
key
:
@
NotNull
String
,
@
NotNull
type
:
@
NotNull
Class
<
T
>
)
:
T
get
String
Link copied to clipboard
@
NotNull
open
fun
getString
(
data
:
@
NotNull
Array
<
Byte
>
,
@
NotNull
key
:
@
NotNull
String
)
:
@
NotNull
String
string
Length
Link copied to clipboard
open
fun
stringLength
(
@
NotNull
s
:
@
NotNull
String
)
:
Int
Calculates the size in bytes of a CBOR encoded string.
to
Bytes
Link copied to clipboard
open
fun
toBytes
(
obj
:
Any
)
:
Array
<
Byte
>
to
Object
Link copied to clipboard
open
fun
<
T
>
toObject
(
data
:
Array
<
Byte
>
,
type
:
Class
<
T
>
)
:
T
to
Object
Map
Link copied to clipboard
open
fun
toObjectMap
(
data
:
Array
<
Byte
>
)
:
Map
<
String
,
Any
>
to
String
Link copied to clipboard
open
fun
<
T
>
toString
(
obj
:
T
)
:
String
open
fun
toString
(
data
:
Array
<
Byte
>
)
:
String
open
fun
toString
(
data
:
Array
<
Byte
>
,
offset
:
Int
)
:
String
to
String
Map
Link copied to clipboard
open
fun
toStringMap
(
data
:
Array
<
Byte
>
)
:
Map
<
String
,
String
>
uint
Length
Link copied to clipboard
open
fun
uintLength
(
n
:
Int
)
:
Int
Calculates the size in bytes of a CBOR encoded unsigned integer.