The total size of the serialized string is 22 bytes : 2 bytes per unicode utf - 16 character , multiplied by the maximum number of characters , plus 2 control bytes of overhead incurred from serializing a binary stream 序列化udt時(shí),序列化字符串的總大小為22字節(jié):每個(gè)unicode utf - 16字符占2個(gè)字節(jié),乘以最大字符數(shù),再加上因序列化二進(jìn)制流而導(dǎo)致的系統(tǒng)開銷2個(gè)控制字節(jié)。
The total size of the serialized string is 22 bytes : 2 bytes per unicode utf - 16 character , multiplied by the maximum number of characters , plus 2 control bytes of overhead incurred from serializing a binary stream . so , when determining the value of 序列化該字符串時(shí),序列化后的字符串的總大小為22個(gè)字節(jié):每個(gè)unicode utf - 16字符占據(jù)的字節(jié)數(shù)2乘以最大字符數(shù)10 ,再加上序列化二進(jìn)制流所引入的開銷占用的2個(gè)控制字節(jié)。