class_docstr: Class returns a list of Ecat images, with one image(hdr/data) per frame
class_docstr_tok: ["Class","returns","a","list","of","Ecat","images",",","with","one","image","(","hdr\/data",")","per","frame"]
docstr: Write data to ``stream`` using an array_writer
  
  :param data: Numpy array containing the dat
  :param stream: The file-like object to write the data to
  :param pos: The position in the stream to write the data to
  :param endianness: Endianness code of the data to write
docstr_tok: ["Write","data","to","``","stream","``","using","an","array_writer",":","param","data",":","Numpy","array","containing","the","dat",":","param","stream",":","The","file-like","object","to","write","the","data","to",":","param","pos",":","The","position","in","the","stream","to","write","the","data","to",":","param","endianness",":","Endianness","code","of","the","data","to","write"]
code: def _write_data(self, data, stream, pos, dtype=None, endianness=None):
      """
      Write data to ``stream`` using an array_writer
  
      :param data: Numpy array containing the dat
      :param stream: The file-like object to write the data to
      :param pos: The position in the stream to write the data to
      :param endianness: Endianness code of the data to write
      """
      if dtype is None:
          dtype = data.dtype
  
      if endianness is None:
          endianness = native_code
  
      stream.seek(pos)
      make_array_writer(
          data.view(data.dtype.newbyteorder(endianness)), dtype
      ).to_fileobj(stream)
  
imports: import warnings
  from numbers import Integral
  import numpy
  from .arraywriters import make_array_writer
  from .fileslice import canonical_slicers, predict_shape, slice2outax
  from .spatialimages import SpatialHeader, SpatialImage
  from .volumeutils import array_from_file, make_dt_codes, native_code, swapped_code
  from .wrapstruct import WrapStruct
label_desc: Use image node_id 12 for calling the EcatImage obj's underlying member method code with example usage: obj._write_data(data, stream, pos, dtype, endianness) without return types