Lawo.EmberPlusSharp.Ember.EmberWriter.EmberWriter C# (CSharp) Method

EmberWriter() public method

Initializes a new instance of the EmberWriter class.
equals null. is 0 or negative.
public EmberWriter ( Stream stream, int bufferSize ) : System
stream Stream The stream to which the EmBER-encoded output should be written.
bufferSize int The size of the internal buffer in bytes.
return System
        public EmberWriter(Stream stream, int bufferSize)
        {
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }

            this.writeBuffer = new WriteBuffer(stream.Write, bufferSize);
            this.tempBuffer = new WriteBuffer(this.writeBuffer.Write, SubidentifierMaxLength * 16);
            this.stream = stream;
        }

Same methods

EmberWriter::EmberWriter ( Stream stream ) : System