(there's example code around for this - I think you have this already)

I think this is already done and we know what is the baseType of this array. So am not doing that step again.  Except that in the constructor forming the size required for the TrustedByteArrayStream.