Add ToSpan for MemoryWriteStream and simplify code with it
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
||||
MemoryWriteStream stream(256);
|
||||
stream.Write(Guid::Empty);
|
||||
MaterialParams::Save(&stream, nullptr);
|
||||
context.Data.Header.Chunks[0]->Data.Copy(stream.GetHandle(), stream.GetPosition());
|
||||
context.Data.Header.Chunks[0]->Data.Copy(ToSpan(stream));
|
||||
|
||||
return CreateAssetResult::Ok;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user