Replaced _padding0 in the Node struct with amount_written;
updated the Write functions to assign node->amount_written based on the amount written;
updated the Read functions to use node->amount_written in place of NodeBufferSize when figuring out how much data to return.
…to the node instead of the whole NodeBufferSize.
Replaced _padding0 in the Node struct with amount_written; updated the Write functions to assign node->amount_written based on the amount written; updated the Read functions to use node->amount_written in place of NodeBufferSize when figuring out how much data to return.