public BinaryStreamWriter(ExtendedBinaryWriter writer) { this.writer = writer ?? throw new ArgumentNullException(nameof(writer)); }