components/prboom/mmus2mid.c
//
// ReadLength()
//
// Reads the length of a chunk in a midi buffer, advancing the pointer
// 4 bytes, bigendian
//
// Passed a pointer to the pointer to a MIDI buffer
// Returns the chunk length at the pointer position
//
ReadLength()
Reads the length of a chunk in a midi buffer, advancing the pointer
4 bytes, bigendian

Passed a pointer to the pointer to a MIDI buffer
Returns the chunk length at the pointer position
ReadLength () Reads the length of a chunk in a midi buffer advancing the pointer 4 bytes bigendian Passed a pointer to the pointer to a MIDI buffer Returns the chunk length at the pointer position
static size_t ReadLength(UBYTE **mid)
{
  UBYTE *midptr = *mid;
  size_t length = (*midptr++)<<24;
  length += (*midptr++)<<16;
  length += (*midptr++)<<8;
  length += *midptr++;
  *mid = midptr;
  return length;
}
static size_t ReadLength ( UBYTE * * mid ) { UBYTE * midptr = * mid ; size_t length = ( * midptr ++ ) << 24 ; length += ( * midptr ++ ) << 16 ; length += ( * midptr ++ ) << 8 ; length += * midptr ++ ; * mid = midptr ; return length ; }
ReadLength()
Reads the length of a chunk in a midi buffer, advancing the pointer
4 bytes, bigendian
ReadLength () Reads the length of a chunk in a midi buffer advancing the pointer 4 bytes bigendian