id3lib 3.8.3

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

readers.cpp
Go to the documentation of this file.
1 // $Id: readers.cpp,v 1.7 2002/07/02 22:14:10 t1mpy Exp $
2
3 // id3lib: a C++ library for creating and manipulating id3v1/v2 tags
4 // Copyright 1999, 2000 Scott Thomas Haug
5
6 // This library is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU Library General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or (at your
9 // option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14 // License for more details.
15 //
16 // You should have received a copy of the GNU Library General Public License
17 // along with this library; if not, write to the Free Software Foundation,
18 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 // The id3lib authors encourage improvements and optimisations to be sent to
21 // the id3lib coordinator. Please see the README file for details on where to
22 // send such submissions. See the AUTHORS file for a list of people who have
23 // contributed to id3lib. See the ChangeLog file for a list of changes to
24 // id3lib. These files are distributed with id3lib at
25 // http://download.sourceforge.net/id3lib/
26
27 #include "readers.h"
28 #include "id3/utils.h" // has <config.h> "id3/id3lib_streams.h" "id3/globals.h" "id3/id3lib_strings.h"
29
30 using namespace dami;
31
32 ID3_Reader::size_type
33 ID3_MemoryReader::readChars(char_type buf[], size_type len)
34 {
35 size_type size = dami::min<size_type>(len, _end - _cur);
36 ::memcpy(buf, _cur, size);
37 _cur += size;
38 return size;
39 }
40
utils.h
ID3_MemoryReader::readChars
virtual size_type readChars(char buf[], size_type len)
Read up to len chars into buf and advance the internal position accordingly.
Definition: readers.h:128
ID3_Reader::size_type
uint32 size_type
Definition: reader.h:36
readers.h
ID3_Reader::char_type
uint8 char_type
Definition: reader.h:37