Size = Data_length + Index_length

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>