How to use the sbp.jit.msg.get_string function in sbp

To help you get started, we’ve selected a few sbp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swift-nav / libsbp / python / sbp / jit / logging.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__level, offset, length) = get_u8(buf, offset, length)
    ret['level'] = __level
    (__text, offset, length) = get_string(buf, offset, length)
    ret['text'] = __text
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / linux.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__index, offset, length) = get_u8(buf, offset, length)
    ret['index'] = __index
    (__pid, offset, length) = get_u16(buf, offset, length)
    ret['pid'] = __pid
    (__socket_count, offset, length) = get_u16(buf, offset, length)
    ret['socket_count'] = __socket_count
    (__socket_types, offset, length) = get_u16(buf, offset, length)
    ret['socket_types'] = __socket_types
    (__socket_states, offset, length) = get_u16(buf, offset, length)
    ret['socket_states'] = __socket_states
    (__cmdline, offset, length) = get_string(buf, offset, length)
    ret['cmdline'] = __cmdline
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / bootload.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__flags, offset, length) = get_u32(buf, offset, length)
    ret['flags'] = __flags
    (__version, offset, length) = get_string(buf, offset, length)
    ret['version'] = __version
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / file_io.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__sequence, offset, length) = get_u32(buf, offset, length)
    ret['sequence'] = __sequence
    (__offset, offset, length) = get_u32(buf, offset, length)
    ret['offset'] = __offset
    (__filename, offset, length) = get_string(buf, offset, length)
    ret['filename'] = __filename
    (__data, offset, length) = get_array(get_u8)(buf, offset, length)
    ret['data'] = __data
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / file_io.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__filename, offset, length) = get_string(buf, offset, length)
    ret['filename'] = __filename
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / linux.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__index, offset, length) = get_u8(buf, offset, length)
    ret['index'] = __index
    (__pid, offset, length) = get_u16(buf, offset, length)
    ret['pid'] = __pid
    (__pcpu, offset, length) = get_u8(buf, offset, length)
    ret['pcpu'] = __pcpu
    (__tname, offset, length) = get_fixed_string(15)(buf, offset, length)
    ret['tname'] = __tname
    (__cmdline, offset, length) = get_string(buf, offset, length)
    ret['cmdline'] = __cmdline
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / file_io.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__sequence, offset, length) = get_u32(buf, offset, length)
    ret['sequence'] = __sequence
    (__offset, offset, length) = get_u32(buf, offset, length)
    ret['offset'] = __offset
    (__chunk_size, offset, length) = get_u8(buf, offset, length)
    ret['chunk_size'] = __chunk_size
    (__filename, offset, length) = get_string(buf, offset, length)
    ret['filename'] = __filename
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / system.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__id, offset, length) = get_u8(buf, offset, length)
    ret['id'] = __id
    (__telemetry_labels, offset, length) = get_string(buf, offset, length)
    ret['telemetry_labels'] = __telemetry_labels
    return ret, offset, length