ArrayPool<T>.Shared ã¿ãªããã¯System.Buffers.ArrayPool<T>.Shared使ã£ã¦ã¾ããï¼ä½¿ã£ã¦ãªãï¼ãªã使ãã¾ãããã ArrayPool<T>.Sharedã¯çæéã ãå©ç¨ãããããªãããã¡ã貸ãã¦ããããã®ã§ãã new T[N]ã¨éããä¸åº¦ä½¿ã£ãé åã使ãã¾ãããã¨ãã§ããã®ã§ã¬ãã¼ã¸ã«ãªãããã¡ã¢ãªå¹çãããã§ãã // Length = 20 以ä¸ã®ãããã¡ãåå¾ byte[] array = ArrayPool<byte>.Shared.Rent(20); // åãããããã¡ãè¿ã ArrayPool<byte>.Shared.Return(array); ArrayPool<T>ã®ãã½ã¯ãé·ã20ãè¦æ±ããæã«20以ä¸ã®é·ãã®é åãè¿ã£ã¦ããã®ã¯ä¿è¨¼ããã¦ã¾ãããé·ã20ã®é åãæ¥ãã¨ã¯éããªãç¹ãè¦æ±ãã以ä¸ã®é·ãã®é åãè¿ã£ã¦
{{#tags}}- {{label}}
{{/tags}}