@Override
	public T write(PcodeArithmetic<T> arithmetic, T offset, T buf) {
		long off = arithmetic.toLong(offset, Purpose.OTHER);
		long len = contents.write(off, buf, stat.st_size);
		stat.st_size = MathUtilities.unsignedMax(stat.st_size, off + len);
		return arithmetic.fromConst(len, (int) arithmetic.sizeOf(offset));
	}
A factory method for the file's default contents

@return the contents
Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/AbstractEmuUnixFile.java