dart-uuid icon indicating copy to clipboard operation
dart-uuid copied to clipboard

Fixed parse to allow buffers larger than 16 bytes to be used.

Open hoylen opened this issue 3 years ago • 0 comments

Fixed parse method to allow buffer and offset parameters to be used as intended.

Previously, the code said if (buffer.length != 16) throw ... which means larger buffers cannot be passed in, and the only valid value for offset is zero.

This code change allows for any buffer size as long as the number of bytes between the offset and the end of the buffer is 16 bytes or greater.

hoylen avatar Aug 26 '22 09:08 hoylen