HPCC-11721 Remove maxlength dependency in the field mapping code

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
I think this might be more natural if IMemoryBlock had a : void *writeDirect(size32_t offset)