Closed kazuho closed 1 year ago
When attempting to read one byte, there are cases where we have to raise either DECODE_ERROR (indicating a syntax error) or another error (e.g., ILLEGAL_PARAMETER indicating logical error).
It is better to have a wrapper function like ptls_decode16.
ptls_decode16
When attempting to read one byte, there are cases where we have to raise either DECODE_ERROR (indicating a syntax error) or another error (e.g., ILLEGAL_PARAMETER indicating logical error).
It is better to have a wrapper function like
ptls_decode16
.