EmbeddedText.FromBytes 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
from 바이트를 생성합니다 EmbeddedText .
public static Microsoft.CodeAnalysis.EmbeddedText FromBytes(string filePath, ArraySegment<byte> bytes, Microsoft.CodeAnalysis.Text.SourceHashAlgorithm checksumAlgorithm = Microsoft.CodeAnalysis.Text.SourceHashAlgorithm.Sha1);
static member FromBytes : string * ArraySegment<byte> * Microsoft.CodeAnalysis.Text.SourceHashAlgorithm -> Microsoft.CodeAnalysis.EmbeddedText
Public Shared Function FromBytes (filePath As String, bytes As ArraySegment(Of Byte), Optional checksumAlgorithm As SourceHashAlgorithm = Microsoft.CodeAnalysis.Text.SourceHashAlgorithm.Sha1) As EmbeddedText
매개 변수
- filePath
- String
PDB에서 사용할 파일 경로(정규화 전)입니다.
- bytes
- ArraySegment<Byte>
바이트입니다.
- checksumAlgorithm
- SourceHashAlgorithm
PDB에 저장된 텍스트의 체크섬을 계산하는 데 사용할 해시 알고리즘입니다.
반환
예외
bytes 는 기본값으로 초기화됩니다.
filePath가 null입니다.
filePath가 비어 있는 경우
checksumAlgorithm은 지원되지 않습니다.
I/O 오류가 발생했습니다.
설명
스트림의 시작 부분에서 읽습니다. 스트림을 열어 둡니다.