Make the return types of 'read' and 'write' more useful.
Make the return types of 'read' and 'write' more useful.

    They return memory sizes, so do the right cast. Ugh.

oridb/mc,oridb/mc,oridb/mc,8l/myrddin,oridb/mc,8l/myrddin