Aspects of the disclosure provide a codec that transforms input data into a codeword. The codeword includes a header portion and a payload portion. The codec modifies the payload portion of the codeword based on a type control block that is included in the payload portion of the codeword. Specifically, the codec modifies a control block in the payload portion to create a reference block, which provisions for data blocks to be inserted in the codeword subsequent to the reference block. Thus, by modifying the payload portion of the codeword, the codec eliminates any wasted data bytes thereby achieving optimal usage of the payload bandwidth.
展开▼