- don't use the no copy flag when decoding, the lifetime of the buffer to decode isn't guaranteed - remove some extraneous ternary comparisons - fix a comment