def METHOD_NAME(self, write_buffer: WriteBuffer):
    write_buffer.push_context("ModbusPDUReadFileRecordResponse")
    # Implicit Field (byte_count) (Used for parsing, but its value is not stored as it's implicitly given by the objects content)
    byte_count: int = int(getsizeof(self.items))
    write_buffer.write_unsigned_byte(byte_count, logical_name="byteCount")
    # Array Field (items)
    write_buffer.write_complex_array(self.items, logical_name="items")
    write_buffer.pop_context("ModbusPDUReadFileRecordResponse")