Add method to RAM to get values with a fixed length

Why is this initialised to -1? Does it matter somehow?