How to use the sbp.jit.msg.get_fixed_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 / piksi.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__name, offset, length) = get_fixed_string(20)(buf, offset, length)
    ret['name'] = __name
    (__cpu, offset, length) = get_u16(buf, offset, length)
    ret['cpu'] = __cpu
    (__stack_free, offset, length) = get_u32(buf, offset, length)
    ret['stack_free'] = __stack_free
    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
    (__recv_queued, offset, length) = get_u16(buf, offset, length)
    ret['recv_queued'] = __recv_queued
    (__send_queued, offset, length) = get_u16(buf, offset, length)
    ret['send_queued'] = __send_queued
    (__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
    (__address_of_largest, offset, length) = get_fixed_string(64)(buf, offset, length)
    ret['address_of_largest'] = __address_of_largest
    (__cmdline, offset, length) = get_string(buf, offset, length)
    ret['cmdline'] = __cmdline
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / piksi.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__ipv4_address, offset, length) = get_fixed_array(get_u8, 4, 1)(buf, offset, length)
    ret['ipv4_address'] = __ipv4_address
    (__ipv4_mask_size, offset, length) = get_u8(buf, offset, length)
    ret['ipv4_mask_size'] = __ipv4_mask_size
    (__ipv6_address, offset, length) = get_fixed_array(get_u8, 16, 1)(buf, offset, length)
    ret['ipv6_address'] = __ipv6_address
    (__ipv6_mask_size, offset, length) = get_u8(buf, offset, length)
    ret['ipv6_mask_size'] = __ipv6_mask_size
    (__rx_bytes, offset, length) = get_u32(buf, offset, length)
    ret['rx_bytes'] = __rx_bytes
    (__tx_bytes, offset, length) = get_u32(buf, offset, length)
    ret['tx_bytes'] = __tx_bytes
    (__interface_name, offset, length) = get_fixed_string(16)(buf, offset, length)
    ret['interface_name'] = __interface_name
    (__flags, offset, length) = get_u32(buf, offset, length)
    ret['flags'] = __flags
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / piksi.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__duration, offset, length) = get_u64(buf, offset, length)
    ret['duration'] = __duration
    (__total_bytes, offset, length) = get_u64(buf, offset, length)
    ret['total_bytes'] = __total_bytes
    (__rx_bytes, offset, length) = get_u32(buf, offset, length)
    ret['rx_bytes'] = __rx_bytes
    (__tx_bytes, offset, length) = get_u32(buf, offset, length)
    ret['tx_bytes'] = __tx_bytes
    (__interface_name, offset, length) = get_fixed_string(16)(buf, offset, length)
    ret['interface_name'] = __interface_name
    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
    (__pmem, offset, length) = get_u8(buf, offset, length)
    ret['pmem'] = __pmem
    (__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