long -> GtWord
uint8_t -> unsigned char in API header