{"author_url":"https://blog.hatena.ne.jp/baba_s/","blog_url":"https://baba-s.hatenablog.com/","height":"190","categories":["Unity","Unity - \u62e1\u5f35\u30e1\u30bd\u30c3\u30c9"],"provider_name":"Hatena Blog","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","url":"https://baba-s.hatenablog.com/entry/2023/02/28/090000","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2023%2F02%2F28%2F090000\" title=\"\u3010Unity\u3011NativeArray \u3067 Reverse \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u3010Unity\u3011NativeArray \u3067 Reverse \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 using Unity.Collections; namespace Kogane { public static class NativeArrayExtensionMethods { public static void Reverse<T>( this NativeArray<T> self ) where T : unmanaged { var halfLength = self.Length / 2; var i = 0; var j = self.Length - 1; for ( ; i < halfLength; i++, j-- ) { ( self[ i ],\u2026","type":"rich","author_name":"baba_s","published":"2023-02-28 09:00:00","version":"1.0","provider_url":"https://hatena.blog","image_url":null}