public WriteBytes ( byte Bytes ) : System.Threading.Tasks.Task | ||
Bytes | byte | |
리턴 | System.Threading.Tasks.Task |
public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) { Writer.WriteInt32(Size); if (Size < 0) { await Writer.WriteBytes(Encoding.Unicode.GetBytes(String)); } else { await Writer.WriteBytes(Encoding.ASCII.GetBytes(String)); Writer.WriteByte(0); } }
public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) { Writer.WriteInt32(TypeReference); Writer.WriteInt32(ParentReference); Writer.WriteInt32(OwnerReference); await NameTableIndex.WriteBuffer(Writer, 0); Writer.WriteInt32(ArchetypeReference); Writer.WriteUInt32(FlagsHigh); Writer.WriteUInt32(FlagsLow); Writer.WriteInt32(BuilderSerialDataSize); Writer.WriteInt32(BuilderSerialDataOffset); Writer.WriteUInt32(ExportFlags); Writer.WriteInt32(NetObjectCount); await Writer.WriteBytes(Guid); Writer.WriteUInt32(Unknown1); await Writer.WriteBytes(Unknown2); }
public async Task WriteCompressedChunkBlockData(ByteArrayWriter Writer) { await Writer.WriteBytes(CompressedData.GetBytes()); }
public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) { await PropertyHeader.WriteBuffer(Writer, CurrentOffset); await Writer.WriteBytes(AdditionalDataReader?.GetBytes()); }
public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) { await Writer.WriteBytes(DataReader?.GetBytes()); }
public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) { await Writer.WriteBytes(Unknown1); Writer.WriteInt32(CurrentOffset + Writer.Index + sizeof(int)); }
public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) { await PropertyHeader.WriteBuffer(Writer, CurrentOffset); await base.WriteBuffer(Writer, CurrentOffset); Writer.WriteInt32(MipMaps.Count); for(int i = 0; i < MipMaps.Count; ++i) { await CompressedChunks[i].WriteCompressedChunk(Writer, CurrentOffset); Writer.WriteInt32(MipMaps[i].Width); Writer.WriteInt32(MipMaps[i].Height); } await Writer.WriteBytes(Guid); }