public FrameTextInformation(byte[] full_data) : base(full_data) { encode = FrameFuncs.getEncoding(data[0]); // Custom Text Tag if (!text_tags.Contains <String>(frame_id)) { int pos = 1; while (pos < data.Length && data[pos] != 0x00) { pos++; } description = encode.GetString(File.Subset(data, 1, pos)); pos++; if (data[pos] == 0x00) { pos++; } value = encode.GetString(File.Subset(data, pos, data.Length - pos - 1)); information = value; } else // Normal Text Tag { information = encode.GetString(File.Subset(data, 1, data.Length - 1)); } }
public FrameSynchronizedLyrics(byte[] full_data) : base(full_data) { encode = FrameFuncs.getEncoding(data[0]); language = File.Subset(data, 1, 3); time_stamp_format = data[4]; try { content_type = types[data[5]]; } catch (KeyNotFoundException) { content_type = "Unknown key"; } descriptor = encode.GetString(File.Subset(data, 6, data.Length - 6)); }
public FrameComments(byte[] full_data) : base(full_data) { encode = FrameFuncs.getEncoding(data[0]); language = File.Subset(data, 1, 3); int pos = 4; while (data[pos] != 0x00) { pos++; } description = encode.GetString(File.Subset(data, 4, pos - 4)); pos++; if (data[pos] == 0x00) { pos++; } comment = encode.GetString(File.Subset(data, pos, data.Length - pos)); }
public FrameUnsynchronizedLyricsTranscription(byte[] full_data) : base(full_data) { encode = FrameFuncs.getEncoding(data[0]); language = File.Subset(data, 1, 3); int pos = 4; while (data[pos] != 0x00) { pos++; } descriptor = encode.GetString(File.Subset(data, 2, pos - 4)); pos++; if (data[pos] == 0x00) { pos++; } lyrics = encode.GetString(File.Subset(data, pos, data.Length - pos)); }