Method: Unisec::Size#utf16_bytesize

Defined in:
lib/unisec/size.rb

#utf16_bytesizeInteger (readonly)

UTF-16 size in bytes

Examples:

us = Unisec::Size.new('👩‍❤️‍👩')
us.utf16_bytesize # => 16

Returns:

  • (Integer)

    UTF-16 size in bytes



34
35
36
# File 'lib/unisec/size.rb', line 34

def utf16_bytesize
  @utf16_bytesize
end