/// <summary> /// Initializes a new instance of the <see cref="DtzIoHelper" /> class. /// </summary> internal DtzIoHelper(string name, Func<Stream, DateTimeZoneWriter> createWriter, Func<Stream, DateTimeZoneReader> createReader) { this.name = name; ioStream = new IoStream(); Reader = createReader(ioStream.GetReadStream()); Writer = createWriter(ioStream.GetWriteStream()); }
/// <summary> /// Initializes a new instance of the <see cref="WriteStreamImpl" /> class. /// </summary> /// <param name="stream">The <see cref="IoStream" /> to read from.</param> public WriteStreamImpl(IoStream stream) { ioStream = stream; }
/// <summary> /// Initializes a new instance of the <see cref="ReadStreamImpl" /> class. /// </summary> /// <param name="stream">The <see cref="ioStream" /> to read from.</param> public ReadStreamImpl(IoStream stream) { ioStream = stream; }