Class LcUuidContentsScrubber
- java.lang.Object
-
- com.facebook.buck.cxx.toolchain.objectfile.LcUuidContentsScrubber
-
- All Implemented Interfaces:
FileContentsScrubber
,FileScrubber
public class LcUuidContentsScrubber extends Object implements FileContentsScrubber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.facebook.buck.io.file.FileScrubber
FileScrubber.ScrubException
-
-
Constructor Summary
Constructors Constructor Description LcUuidContentsScrubber(boolean scrubConcurrently)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
resetUuidIfPresent(MappedByteBuffer map)
Sets the LC_UUID to all zeroes if it's part of the Mach-O file.void
scrubFile(FileChannel file)
Override this method to perform the content modification.
-
-
-
Method Detail
-
scrubFile
public void scrubFile(FileChannel file) throws IOException, FileScrubber.ScrubException
Description copied from interface:FileContentsScrubber
Override this method to perform the content modification.- Specified by:
scrubFile
in interfaceFileContentsScrubber
- Throws:
IOException
FileScrubber.ScrubException
-
resetUuidIfPresent
protected static void resetUuidIfPresent(MappedByteBuffer map) throws FileScrubber.ScrubException
Sets the LC_UUID to all zeroes if it's part of the Mach-O file.- Throws:
FileScrubber.ScrubException
-
-