WriteToStream
void WriteToStream(std::ostream& stream) const;
ssize_t WriteToStream(BPositionIO *stream);
psdHeader.WriteToStream(target);
psdColorModeSection.WriteToStream(target);
psdImageResourceSection.WriteToStream(target);
psdLayersSection.WriteToStream(target);
psdByteCounts[channelIdx].WriteToStream(target);
psdChannel[channelIdx].WriteToStream(target);
WriteToStream(stream);