IronRuby.Builtins.RubyIO.WriteBytes C# (CSharp) Method

WriteBytes() public method

public WriteBytes ( MutableString buffer, int index, int count ) : int
buffer MutableString
index int
count int
return int
        public int WriteBytes(MutableString/*!*/ buffer, int index, int count) {
            ContractUtils.RequiresNotNull(buffer, "buffer");
            return WriteBytes(null, buffer, index, count);
        }

Same methods

RubyIO::WriteBytes ( byte bytes, MutableString str, int index, int count ) : int
RubyIO::WriteBytes ( byte buffer, int index, int count ) : int
RubyIO::WriteBytes ( char buffer, int index, int count ) : int
RubyIO::WriteBytes ( string value ) : int

Usage Example

Beispiel #1
0
        public static int Write(RubyIO /*!*/ self, [NotNull] MutableString /*!*/ val)
        {
            int bytesWritten = val.IsEmpty ? 0 : self.WriteBytes(val, 0, val.GetByteCount());

            if (self.AutoFlush)
            {
                self.Flush();
            }
            return(bytesWritten);
        }
All Usage Examples Of IronRuby.Builtins.RubyIO::WriteBytes