VALUE_TYPE(BVT_BE_UINT16, read_u16be, sizeof(uint16_t));
VALUE_TYPE(BVT_BE_UINT24, read_u24be, 3 * sizeof(uint8_t));
VALUE_TYPE(BVT_BE_UINT32, read_u32be, sizeof(uint32_t));
- VALUE_TYPE(BVT_BE_UINT64, read_u64be, sizeof(uint64_t));
- VALUE_TYPE(BVT_BE_FLOAT, read_fltbe, sizeof(float));
VALUE_TYPE(BVT_LE_UINT16, read_u16le, sizeof(uint16_t));
VALUE_TYPE(BVT_LE_UINT24, read_u24le, 3 * sizeof(uint8_t));
VALUE_TYPE(BVT_LE_UINT32, read_u32le, sizeof(uint32_t));
- VALUE_TYPE(BVT_LE_UINT64, read_u64le, sizeof(uint64_t));
- VALUE_TYPE(BVT_LE_FLOAT, read_fltle, sizeof(float));
default:
return SR_ERR_ARG;
case BVT_BE_UINT32:
value = read_u32be(ptr);
break;
- case BVT_BE_UINT64:
- value = read_u64be(ptr);
- break;
- case BVT_BE_FLOAT:
- value = read_fltbe(ptr);
- break;
case BVT_LE_UINT16:
value = read_u16le(ptr);
break;
case BVT_LE_UINT32:
value = read_u32le(ptr);
break;
- case BVT_LE_UINT64:
- value = read_u64le(ptr);
- break;
- case BVT_LE_FLOAT:
- value = read_fltle(ptr);
- break;
default:
return SR_ERR_ARG;
}
BVT_INVALID,
BVT_UINT8,
- BVT_BE_UINT8 = BVT_UINT8,
- BVT_LE_UINT8 = BVT_UINT8,
BVT_BE_UINT16,
BVT_BE_UINT24,
BVT_BE_UINT32,
- BVT_BE_UINT64,
- BVT_BE_FLOAT,
BVT_LE_UINT16,
BVT_LE_UINT24,
BVT_LE_UINT32,
- BVT_LE_UINT64,
- BVT_LE_FLOAT,
};
/** Binary value specification */