Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1193: Mac ProjFS: Only hydrate/expand when deleti…
…ng due to rename Mac ProjFS: Only hydrate/expand when deleting due to rename
- Loading branch information
Showing
27 changed files
with
851 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
template<typename T, size_t size> | ||
constexpr size_t Array_Size(T (&array)[size]) | ||
{ | ||
return size; | ||
} | ||
|
||
template <typename T> void Array_CopyElements(T* destination, const T* source, size_t count) | ||
{ | ||
for (size_t i = 0; i < count; ++i) | ||
{ | ||
destination[i] = source[i]; | ||
} | ||
} | ||
|
||
template <typename T> void Array_DefaultInit(T* array, size_t count) | ||
{ | ||
for (size_t i = 0; i < count; ++i) | ||
{ | ||
array[i] = T(); | ||
} | ||
} | ||
|
Oops, something went wrong.