depending on frame data length get length from first 7 bits, next 16 bits or next 64 bits