Exemplo n.º 1
0
void ltc_encoder_encode_frame(LTCEncoder *e) {
	int byte;
	for (byte = 0 ; byte < 10 ; byte++) {
		encode_byte(e, byte, 1.0);
	}
}
Exemplo n.º 2
0
void CLIENT_DESC::DBPacketHeader(BYTE bHeader, DWORD dwHandle, DWORD dwSize)
{
    buffer_write(m_lpOutputBuffer, encode_byte(bHeader), sizeof(BYTE));
    buffer_write(m_lpOutputBuffer, encode_4bytes(dwHandle), sizeof(DWORD));
    buffer_write(m_lpOutputBuffer, encode_4bytes(dwSize), sizeof(DWORD));
}
Exemplo n.º 3
0
int ltc_encoder_encode_byte(LTCEncoder *e, int byte, double speed) {
	return encode_byte(e, byte, speed);
}
Exemplo n.º 4
0
void packet_header(PACKET_DATA *buf, BYTE header, WORD desc_num)
{
	packet(buf,	encode_byte(header),		1);
	packet(buf,	encode_2bytes(desc_num),	2);
}