A terminal device, comprising: a transmission unit configured and/or programmed to transmit, to a base station device, a Rank Indicator, RI, for Physical Downlink Shared CHannel, PDSCH, transmission; a reception unit configured and/or programmed to receive, from the base station device, first information used for determining a first maximum number of layers being the first maximum number assumed for determining a bit width for the RI and to receive, from the base station device, a transport block on the PDSCH; and a decoding unit configured and/or programmed to decode a code block of the transport block, wherein in a case that the decoding unit fails to decode the code block, the decoding unit stores at least soft channel bits corresponding to a range of prescribed soft channel bits, the prescribed soft channel bits are based on a soft buffer size for the code block, and the soft buffer size for the code block is based at least on the first information used for determining the first maximum number of the layers, wherein the transmission unit transmits, to the base station device, capability information including second information and third information, the second information indicates second maximum number of the layers supported by the terminal device in a downlink and first UE category corresponding to first total number of soft channel bits capable of being utilized for Hybrid Automatic Repeat reQuest, HARQ, processing in the downlink, the third information indicates a third maximum number of the layers supported by the terminal device in the downlink, and second UE category corresponding to second total number of soft channel bits capable of being utilized for HARQ processing in the downlink, and the soft buffer size for the code block is given by referring to any one of the first total number and the second total number, based on whether the first information used for determining the first maximum number of the layers is configured to a value indicating a fourth maximum number of the layers. a transmission unit configured and/or programmed to transmit, to a base station device, a Rank Indicator, RI, for Physical Downlink Shared CHannel, PDSCH, transmission; a reception unit configured and/or programmed to receive, from the base station device, first information used for determining a first maximum number of layers being the first maximum number assumed for determining a bit width for the RI and to receive, from the base station device, a transport block on the PDSCH; and a decoding unit configured and/or programmed to decode a code block of the transport block, wherein in a case that the decoding unit fails to decode the code block, the decoding unit stores at least soft channel bits corresponding to a range of prescribed soft channel bits, the prescribed soft channel bits are based on a soft buffer size for the code block, and the soft buffer size for the code block is based at least on the first information used for determining the first maximum number of the layers, wherein the transmission unit transmits, to the base station device, capability information including second information and third information, the second information indicates second maximum number of the layers supported by the terminal device in a downlink and first UE category corresponding to first total number of soft channel bits capable of being utilized for Hybrid Automatic Repeat reQuest, HARQ, processing in the downlink, the third information indicates a third maximum number of the layers supported by the terminal device in the downlink, and second UE category corresponding to second total number of soft channel bits capable of being utilized for HARQ processing in the downlink, and the soft buffer size for the code block is given by referring to any one of the first total number and the second total number, based on whether the first information used for determining the first maximum number of the layers is configured to a value indicating a fourth maximum number of the layers.