Exemple #1
0
        /// <summary>
        ///     create a new memo buffer set
        /// </summary>
        /// <param name="options"></param>
        public MemoBuffers(MemoBufferOptions options)
        {
            if (options is null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            buffers = new FileBuffers(options.BufferOptions);
        }
Exemple #2
0
 /// <summary>
 ///     create a new stream buffer
 /// </summary>
 /// <param name="stream">input stream</param>
 /// <param name="buffers">owner buffers</param>
 public StreamBuffer(Stream stream, FileBuffers buffers) : base(buffers)
     => Stream = stream;
Exemple #3
0
 /// <summary>
 ///     create a new file buffer
 /// </summary>
 /// <param name="path"></param>
 /// <param name="fileBuffers"></param>
 public FileBuffer(string path, FileBuffers fileBuffers) : base(fileBuffers)
     => filePath = path;