src/SimpleEntry.cs
/// <summary>
/// Replace the content of this entry by a byte array.
/// </summary>
/// <param name="content">The content byte array.</param>
/// <param name="mode">The mode.</param>
/// <exception cref="System.ArgumentNullException">content</exception>
Replace the content of this entry by a byte array.
Replace the content of this entry by a byte array .
public void SetBlob(byte[] content, Mode mode = Mode.NonExecutableFile)
        {
            if (content == null) throw new ArgumentNullException("content");
            var newBlob = repo.ObjectDatabase.CreateBlob(new MemoryStream(content));
            SetBlob(newBlob, mode);
        }
public void SetBlob ( byte [ ] content , Mode mode = Mode . NonExecutableFile ) { if ( content == null ) throw new ArgumentNullException ( " " ) ; var newBlob = repo . ObjectDatabase . CreateBlob ( new MemoryStream ( content ) ) ; SetBlob ( newBlob , mode ) ; }
Replace the content of this entry by a byte array.
Replace the content of this entry by a byte array .
None
content
byte[]
The content byte array.
The content byte array .
mode
Mode
None