nw::gfx::ShaderBinaryInfo::SafeBuffer::Write Member Function

Syntax

s32 Write(
     const u32 * src,
     s32 size
);

Arguments

Name Description
in src Source data to be written.
in size Data size to write.

Return Values

Returns the data size that was written. Returns a negative error code if the write failed.

Description

Writes data. Returns a negative error code and exits without writing remaining data, if available memory is insufficient. IsFinished() returns true if the write fails due to a capacity problem.


CONFIDENTIAL