Skip to content

Convert Type to Value (org.msgpack.value.Value), if one exists #466

Open
@chintan-mishra

Description

@chintan-mishra

How can I convert an Array to ArrayValue?

For instance

String[] myStringArray = {"abc", "def", "ghi"}
// now I want to pack it in MessageBufferPacker
// I don't want to use a loop(really big array 200 elements) to read
// each value followed by packString

messageBufferPacker.packValue(myStringArray.asArrayValue)
// This doesn't work.

What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions