System.StreamExtensions.WriteNoAlloc C# (CSharp) Méthode

WriteNoAlloc() public static méthode

public static WriteNoAlloc ( this stream, byte value ) : void
stream this
value byte
Résultat void
        public static void WriteNoAlloc(this Stream stream, byte value) { var buffer = Buffer; buffer[0] = value; stream.Write(buffer, 0, 1); }
        public static unsafe void WriteNoAlloc(this Stream stream, Int16 v) { stream.WriteNoAlloc((byte*)&v, 0, sizeof(Int16)); }

Same methods

StreamExtensions::WriteNoAlloc ( this stream, Int16 v ) : void
StreamExtensions::WriteNoAlloc ( this stream, Int32 v ) : void
StreamExtensions::WriteNoAlloc ( this stream, System.Int64 v ) : void
StreamExtensions::WriteNoAlloc ( this stream, UInt16 v ) : void
StreamExtensions::WriteNoAlloc ( this stream, UInt32 v ) : void
StreamExtensions::WriteNoAlloc ( this stream, System.UInt64 v ) : void
StreamExtensions::WriteNoAlloc ( this stream, byte bytes, int offset, int count ) : void
StreamExtensions::WriteNoAlloc ( this stream, decimal v ) : void
StreamExtensions::WriteNoAlloc ( this stream, double v ) : void
StreamExtensions::WriteNoAlloc ( this stream, float v ) : void
StreamExtensions::WriteNoAlloc ( this stream, string text, Encoding encoding = null ) : void