Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BlobContentId() [3/3]

unsafe System.Reflection.Metadata.BlobContentId.BlobContentId ( byte[] id)
inline

Definition at line 37 of file BlobContentId.cs.

38 {
39 if (id == null)
40 {
41 throw new ArgumentNullException("id");
42 }
43 if (id.Length != 20)
44 {
46 }
47 fixed (byte* buffer = &id[0])
48 {
49 BlobReader blobReader = new BlobReader(buffer, id.Length);
50 Guid = blobReader.ReadGuid();
51 Stamp = blobReader.ReadUInt32();
52 }
53 }
static string UnexpectedArrayLength
Definition SR.cs:216
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.buffer, System.SR.Format(), System.Reflection.Metadata.BlobContentId.Stamp, and System.SR.UnexpectedArrayLength.