MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / get_byte_slice

Function get_byte_slice

tools/scripts/gdbext.py:153–154  ·  view source on GitHub ↗
(value, size, as_type)

Source from the content-addressed store, hash-verified

151
152
153def get_byte_slice(value, size, as_type):
154 return as_type([int(value[i]) for i in range(0, size)])
155
156def get_byte_array(value):
157 return get_byte_slice(value, value.type.strip_typedefs().range()[1] + 1, tuple)

Callers 2

get_byte_arrayFunction · 0.85
std_string_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected