C# 클래스 GitRocketFilter.SimpleEntry

Represents a git blob or link in a tree.
파일 보기 프로젝트 열기: xoofx/GitRocketFilter 1 사용 예제들

공개 메소드들

메소드 설명
GetBlobAsBytes ( ) : byte[]

Gets the content of the blob as a byte array.

GetBlobAsStream ( ) : Stream

Gets the content of the blob as a stream.

GetBlobAsText ( ) : string

Gets the content of the blob as a text.

SetBlob ( Blob newBlob, Mode mode = Mode.NonExecutableFile ) : void

Replace the content of this entry by a blob.

SetBlob ( Stream content, Mode mode = Mode.NonExecutableFile ) : void

Replace the content of this entry by a stream.

SetBlob ( byte content, Mode mode = Mode.NonExecutableFile ) : void

Replace the content of this entry by a byte array.

SetBlob ( string content, Encoding encoding, Mode mode = Mode.NonExecutableFile ) : void

Replace the content of this entry by a string with a particular encoding.

SetBlob ( string content, Mode mode = Mode.NonExecutableFile ) : void

Replace the content of this entry by a string.

ToString ( ) : string

비공개 메소드들

메소드 설명
SimpleEntry ( Repository repo, TreeEntry entry ) : System

Initializes a new instance of the SimpleEntry struct.

메소드 상세

GetBlobAsBytes() 공개 메소드

Gets the content of the blob as a byte array.
public GetBlobAsBytes ( ) : byte[]
리턴 byte[]

GetBlobAsStream() 공개 메소드

Gets the content of the blob as a stream.
public GetBlobAsStream ( ) : Stream
리턴 Stream

GetBlobAsText() 공개 메소드

Gets the content of the blob as a text.
public GetBlobAsText ( ) : string
리턴 string

SetBlob() 공개 메소드

Replace the content of this entry by a blob.
content
public SetBlob ( Blob newBlob, Mode mode = Mode.NonExecutableFile ) : void
newBlob Blob The content blob.
mode Mode The mode.
리턴 void

SetBlob() 공개 메소드

Replace the content of this entry by a stream.
content
public SetBlob ( Stream content, Mode mode = Mode.NonExecutableFile ) : void
content Stream The content stream.
mode Mode The mode.
리턴 void

SetBlob() 공개 메소드

Replace the content of this entry by a byte array.
content
public SetBlob ( byte content, Mode mode = Mode.NonExecutableFile ) : void
content byte The content byte array.
mode Mode The mode.
리턴 void

SetBlob() 공개 메소드

Replace the content of this entry by a string with a particular encoding.
content
public SetBlob ( string content, Encoding encoding, Mode mode = Mode.NonExecutableFile ) : void
content string The content string.
encoding System.Text.Encoding The encoding mode for the string.
mode Mode The mode.
리턴 void

SetBlob() 공개 메소드

Replace the content of this entry by a string.
content
public SetBlob ( string content, Mode mode = Mode.NonExecutableFile ) : void
content string The content string.
mode Mode The mode.
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string