Measure string size – the right way.(blogs.microsoft.co.il)
submitted by
yevgenif(115) 2 years, 4 months ago
Recently I needed to measure an exact size in memory for a string – asked a developer sitting next to me how would he do it. An answer was: “Take a string’s length multiply by 2(it’s a UTF-8 encoding) – you will get an exact size”.
|category: C#
|Views: 20
tags:
C# another
Everyones tags:
Your Tags: