Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

string TagLib::Asf::File::ReadUnicode ( int  length  )  [inline]

Reads a Unicode (UTF-16LE) string of specified length from the current instance.

Parameters:
length A int value specifying the number of bytes to read. This should always be an even number.
Returns:
A string object containing the Unicode string read from the current instance.

Definition at line 313 of file File.cs.

References TagLib::File::ReadBlock(), and TagLib::ByteVector::ToString().

            {
                  ByteVector data = ReadBlock (length);
                  string output = data.ToString (StringType.UTF16LE);
                  int i = output.IndexOf ('\0');
                  return (i >= 0) ? output.Substring (0, i) : output;
            }


Generated by  Doxygen 1.6.0   Back to index