uint8*转为fstring
2022-03-04 18:27 kk20161206 阅读(259) 评论(0) 编辑 收藏 举报Mip.BulkData.GetCopy(&OutMipData[MipIndex - FirstMipToLoad], true);
uint8* In = (uint8*)Mip.BulkData.Lock(LOCK_READ_ONLY);
uint32 MipSize = Mip.BulkData.GetBulkDataSize();
//std::string s(data, data + len);
FString Str = BytesToString(In, MipSize);
//FString BytesToString(
// In, //const uint8 * In, //const uint8 * In
// MipSize
//);
UE_LOG(LogTexture, Error, TEXT("%s de ith : %d mip's bulk data is %s"), *Texture->GetFullName(), MipIndex, *Str);
注意:BytesToString