private void set(long fileOffset, long value, int size)
			throws IOException, IllegalArgumentException {
		if (size != 4 && size != 8) {
			throw new IllegalArgumentException("Size must be 4 or 8 (got " + size + ")");
		}

		try {
			byte[] newBytes = toBytes(value, size);
			System.arraycopy(newBytes, 0, packed, (int) getPackedOffset(fileOffset, textSegment),
				newBytes.length);
		}
		catch (NotFoundException e) {
			Msg.warn(this, e.getMessage());
		}
	}
Sets the bytes at the given container file offset to the given value.  The provided file 
offset is assumed to map to a field in a load command.
 
@param fileOffset The Mach-O file offset to set
@param value The new value
@param size The number of bytes to set (must be 4 or 8)
@throws IOException If there was an IO-related error
@throws IllegalArgumentException if size is an unsupported value
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/ExtractedMacho.java