Package ghidra.pcode.emu.unix

# Class BytesEmuUnixFileSystem.BytesEmuUnixFile

java.lang.Object
ghidra.pcode.emu.unix.AbstractEmuUnixFile<byte[]>
ghidra.pcode.emu.unix.BytesEmuUnixFileSystem.BytesEmuUnixFile

All Implemented Interfaces:
  `EmuUnixFile<byte[]>`

Enclosing class:
  `BytesEmuUnixFileSystem`

protected static class BytesEmuUnixFileSystem.BytesEmuUnixFile extends AbstractEmuUnixFile<byte[]>
A concrete in-memory file suitable for UNIX programs

- ## Field Summary

  ### Fields inherited from class ghidra.pcode.emu.unix.AbstractEmuUnixFile

  `contents, pathname, stat`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BytesEmuUnixFile(String pathname, int mode)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected EmuFileContents<byte[]>`
  `createDefaultContents()`
  A factory method for the file's default contents

  ### Methods inherited from class ghidra.pcode.emu.unix.AbstractEmuUnixFile

  `createStat, getPathname, getStat, read, truncate, write`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface ghidra.pcode.emu.unix.EmuUnixFile

  `checkReadable, checkWritable, isReadable, isWritable`

- ## Constructor Details

  - ### BytesEmuUnixFile

    public BytesEmuUnixFile(String pathname, int mode)

- ## Method Details

  - ### createDefaultContents

    protected EmuFileContents<byte[]> createDefaultContents()
    Description copied from class: `AbstractEmuUnixFile`
    A factory method for the file's default contents
    Specified by:
      `createDefaultContents` in class `AbstractEmuUnixFile<byte[]>`
    Returns:
      the contents