public void reset() {
		outputStream = new ByteArrayOutputStream();
		// We do not need to reset the bytes variable here.  It is created when access to it is
		// attempted with the get() method.
	}
This is a utility class for testing parts of the PDB Reader, which has data predominantly
 stored in Little Endian order in byte array buffers.  This utility is used for
 writing byte arrays for the purpose of testing classes that parse byte arrays for their
 construction/instantiation.  The class that generally reads (the reverse process) the byte
 arrays for the PDB Reader is the {@link PdbByteReader}, which reads in Little Endian order.
<P>
This utility class should be used as follows:
<OL>
 <LI> Instantiate a {@code ByteWriter}.</LI>
 <LI> Do a sequence of "put" methods.</LI>
 <LI> Call {@link #get()} to retrieve the byte array.</LI>
 <LI> Repeat process, starting with a new instantiation or call the {@link #reset()} method.</LI>
</OL>
Ghidra/Features/PDB/src/test/java/ghidra/app/util/bin/format/pdb2/pdbreader/PdbByteWriter.java