@@ 6377-6390 (lines=14) @@ | ||
6374 | * @param string $subData |
|
6375 | * @return array |
|
6376 | */ |
|
6377 | private static function _readUnicodeStringShort($subData) |
|
6378 | { |
|
6379 | $value = ''; |
|
6380 | ||
6381 | // offset: 0: size: 1; length of the string (character count) |
|
6382 | $characterCount = ord($subData[0]); |
|
6383 | ||
6384 | $string = self::_readUnicodeString(substr($subData, 1), $characterCount); |
|
6385 | ||
6386 | // add 1 for the string length |
|
6387 | $string['size'] += 1; |
|
6388 | ||
6389 | return $string; |
|
6390 | } |
|
6391 | ||
6392 | ||
6393 | /** |
|
@@ 6401-6414 (lines=14) @@ | ||
6398 | * @param string $subData |
|
6399 | * @return array |
|
6400 | */ |
|
6401 | private static function _readUnicodeStringLong($subData) |
|
6402 | { |
|
6403 | $value = ''; |
|
6404 | ||
6405 | // offset: 0: size: 2; length of the string (character count) |
|
6406 | $characterCount = self::_GetInt2d($subData, 0); |
|
6407 | ||
6408 | $string = self::_readUnicodeString(substr($subData, 2), $characterCount); |
|
6409 | ||
6410 | // add 2 for the string length |
|
6411 | $string['size'] += 2; |
|
6412 | ||
6413 | return $string; |
|
6414 | } |
|
6415 | ||
6416 | ||
6417 | /** |