How to get the account data length?

I need to calculate the MinimumBalanceForRentExemption, and I checked the docs it says I can get the minimum lamports by passing the account data length, but I didn’t found the official definition of “account data lenght”, how can I get this data?

Thank you all in advance.

Well it depends of your data structure you are planning to store into your account. For instance if you want to save u8 (unsigned 8 bit number) data length will be 1 as u8 occupies exactly 1 byte.

thank you, and could you help to confirm that is a normal wallet account data length is 0? I saw the Allocated Data Size equals to 0 on Explorer | Solana is this Allocated Data Size == account data length?