midisync.cpp
// Get variable length buffer, returns length

Get variable length buffer, returns length
Get variable length buffer returns length
uint32_t GetVLQ(uint8_t **data)
{
  uint32_t length = 0;
  uint8_t c = 0;
  do
  {
    c = **data;
    *data = (*data)+1;
    length = (length << 7) + (c & 0x7f);
  } while (c & 0x80);
  return length;
}
uint32_t GetVLQ ( uint8_t * * data ) { uint32_t length = 0 ; uint8_t c = 0 ; do { c = * * data ; * data = ( * data ) + 1 ; length = ( length << 7 ) + ( c & 0x7f ) ; } while ( c & 0x80 ) ; return length ; }
Get variable length buffer, returns length
Get variable length buffer returns length