Decode a frame from a buffer
Important implementation notice: When returning byte arrays, make sure that the returned array is not a view into the original buffer, as the underlying buffer may get invalidated
Optional
setupFor codecs that use crypto functions and/or logging. This method is called before any other.
Padded intermediate packet codec. See https://core.telegram.org/mtproto/mtproto-transports#padded-intermediate