public Config(bool haveNRows, bool haveStrings, bool seekable, StringWriteMode mode)
 {
     _haveNRows   = haveNRows;
     _haveStrings = haveStrings;
     _seekable    = seekable;
     _mode        = mode;
 }
 public StreamedBinaryTableHDU(RowSource rs, int bufSize, StringWriteMode writeMode,
                               int stringTruncationLength, bool padLeft, char padChar)
 {
     _writerMap              = CreateWriterMap();
     _rs                     = rs;
     _buf                    = new byte[bufSize];
     _byteRenderers          = new ByteRenderer[_rs.ModelRow.Length];
     _writeMode              = writeMode;
     _stringTruncationLength = stringTruncationLength;
     _padLeft                = padLeft;
     _padChar                = padChar;
     SetupRenderers();
 }
Пример #3
0
 public StreamedBinaryTableHDU(RowSource rs, int bufSize, StringWriteMode writeMode,
     int stringTruncationLength, bool padLeft, char padChar)
 {
     _writerMap = CreateWriterMap();
       _rs = rs;
       _buf = new byte[bufSize];
       _byteRenderers = new ByteRenderer[_rs.ModelRow.Length];
       _writeMode = writeMode;
       _stringTruncationLength = stringTruncationLength;
       _padLeft = padLeft;
       _padChar = padChar;
       SetupRenderers();
 }
 public StreamedBinaryTableHDU(RowSource rs, int bufSize, StringWriteMode writeMode,
                               int stringTruncationLength) : this(rs, bufSize, writeMode, stringTruncationLength, true, ' ')
 {
 }
Пример #5
0
 public Config(bool haveNRows, bool haveStrings, bool seekable, StringWriteMode mode)
 {
     _haveNRows = haveNRows;
     _haveStrings = haveStrings;
     _seekable = seekable;
     _mode = mode;
 }
Пример #6
0
 public StreamedBinaryTableHDU(RowSource rs, int bufSize, StringWriteMode writeMode,
     int stringTruncationLength)
     : this(rs, bufSize, writeMode, stringTruncationLength, true, ' ')
 {
 }