| 75 | } |
| 76 | |
| 77 | StringAnsiView MAssembly::AllocString(const char* str) |
| 78 | { |
| 79 | if (!str) |
| 80 | return StringAnsiView::Empty; |
| 81 | int32 len = StringUtils::Length(str); |
| 82 | char* mem = (char*)Memory.Allocate(len + 1); |
| 83 | Platform::MemoryCopy(mem, str, len); |
| 84 | mem[len] = 0; |
| 85 | return StringAnsiView(mem, len); |
| 86 | } |
| 87 | |
| 88 | String MAssembly::ToString() const |
| 89 | { |
no test coverage detected