Data Chunk

bosdyn.client.data_chunk.split_serialized(serialized: bytes, data_chunk_byte_size: int)[source]

Split a byte string into appropriately-sized chunks.

bosdyn.client.data_chunk.chunk_serialized(serialized: bytes, data_chunk_byte_size: int)[source]

Yield DataChunks for the given bytes.

bosdyn.client.data_chunk.chunk_message(message, data_chunk_byte_size: int)[source]

Take a message, and split it into data chunks

Parameters:

data_chunk_byte_size – max size of each streamed message

bosdyn.client.data_chunk.parse_from_chunks(iterable_chunks, out_msg)[source]

Parse out a message from chunks.

bosdyn.client.data_chunk.serialized_from_messages(iterable_messages)[source]

Assemble from messages that define a DataChunk chunk field.

bosdyn.client.data_chunk.serialized_from_chunks(iterable_chunks)[source]

Assemble from data chunks directly without wrapper messages.

bosdyn.client.data_chunk.serialized_from_strings(iterable_strings)[source]

Concatenate bytes together.