Exemple #1
0
            public static int Write(GzipWriter /*!*/ self, [NotNull] MutableString /*!*/ val)
            {
                var stream = self.GetStream();

                // TODO: this can be optimized (add MutableString.WriteTo(Stream))
                var buffer = val.ToByteArray();

                stream.Write(buffer, 0, buffer.Length);
                return(buffer.Length);
            }
Exemple #2
0
            public static int Write(GzipWriter/*!*/ self, [NotNull]MutableString/*!*/ val)
            {
                var stream = self.GetStream();

                // TODO: this can be optimized (add MutableString.WriteTo(Stream))
                var buffer = val.ToByteArray();
                stream.Write(buffer, 0, buffer.Length);
                return buffer.Length;
            }