ImageMagick.MemoryStreamExtensions.GetBuffer C# (CSharp) Method

GetBuffer() static private method

static private GetBuffer ( this memStream ) : byte[]
memStream this
return byte[]
    internal static byte[] GetBuffer(this MemoryStream memStream)
    {
      ArraySegment<byte> buffer;
      if (!memStream.TryGetBuffer(out buffer))
        return memStream.ToArray();

      return buffer.Array;
    }
  }
MemoryStreamExtensions