Add readInt16

This commit is contained in:
Eric Tang
2017-07-21 11:16:52 -07:00
parent c1c00f2b3a
commit d29d104be2
2 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ uint16_t readUInt16(config_buffer_t *buffer) {
return uInt16;
}
int16_t readInt16(config_buffer_t *buffer) {
return readUInt16(buffer);
}
bool readBool(config_buffer_t *buffer) {
return readUInt8(buffer);
}

View File

@@ -25,6 +25,7 @@
uint8_t readUInt8(config_buffer_t *buffer);
uint16_t readUInt16(config_buffer_t *buffer);
int16_t readInt16(config_buffer_t *buffer);
bool readBool(config_buffer_t *buffer);
uint16_t readCompactLength(config_buffer_t *buffer);
const char *readString(config_buffer_t *buffer, uint16_t *len);