Blob.seek and blob.writen giving the index does not exist errors

Hi,

There’s probably a simple answer to this but I can’t fathom it, can some please explain what I’m missing?

Thanks,

David.

This works
serialblob <- blob(64) //serialblob = 0x3132 serialblob.seek(serialblob.len()) serialblob.writen(0x3132, 'w')

This doesn’t work, returns index does not exist.
serialblob <- blob(64) serialblob = 0x3132 serialblob.seek(serialblob.len()) serialblob.writen(0x3132, 'w')

A stab: line 2 in the second code block re-assigns the global variable seriablob as an integer, and Squirrel’s integer delegate object doesn’t support seek(), len() or writen()?