@@ -87,7 +87,7 @@ namespace Exiv2 {
8787
8888 // ! @name Accessors
8989 // @{
90- long copy (byte* buf, ByteOrder byteOrder) const override ;
90+ size_t copy (byte* buf, ByteOrder byteOrder) const override ;
9191 std::ostream& write (std::ostream& os, const ExifData* pMetadata = nullptr ) const override ;
9292 /* !
9393 @brief Return the key of the Iptcdatum. The key is of the form
@@ -118,14 +118,14 @@ namespace Exiv2 {
118118 uint16_t tag () const override ;
119119 TypeId typeId () const override ;
120120 const char * typeName () const override ;
121- long typeSize () const override ;
121+ size_t typeSize () const override ;
122122 size_t count () const override ;
123- long size () const override ;
123+ size_t size () const override ;
124124 std::string toString () const override ;
125- std::string toString (long n) const override ;
126- int64_t toInt64 (long n = 0 ) const override ;
127- float toFloat (long n = 0 ) const override ;
128- Rational toRational (long n = 0 ) const override ;
125+ std::string toString (size_t n) const override ;
126+ int64_t toInt64 (size_t n = 0 ) const override ;
127+ float toFloat (size_t n = 0 ) const override ;
128+ Rational toRational (size_t n = 0 ) const override ;
129129 Value::UniquePtr getValue () const override ;
130130 const Value& value () const override ;
131131 // @}
@@ -236,19 +236,17 @@ namespace Exiv2 {
236236 uint16_t record = IptcDataSets::application2) const ;
237237 // ! Return true if there is no IPTC metadata
238238 bool empty () const { return count () == 0 ; }
239+
239240 // ! Get the number of metadata entries
240- long count () const { return static_cast <long >(iptcMetadata_.size ()); }
241- /* !
242- @brief Return the exact size of all contained IPTC metadata
243- */
244- long size () const ;
245- /* !
246- @brief Return the metadata charset name or 0
247- */
241+ size_t count () const { return iptcMetadata_.size (); }
242+
243+ // ! @brief Return the exact size of all contained IPTC metadata
244+ size_t size () const ;
245+
246+ // ! @brief Return the metadata charset name or 0
248247 const char *detectCharset () const ;
249- /* !
250- @brief dump iptc formatted binary data (used by printStructure kpsRecursive)
251- */
248+
249+ // ! @brief dump iptc formatted binary data (used by printStructure kpsRecursive)
252250 static void printStructure (std::ostream& out, const Slice<byte*>& bytes,uint32_t depth);
253251 // @}
254252
@@ -274,7 +272,7 @@ namespace Exiv2 {
274272 @return 0 if successful;<BR>
275273 5 if the binary IPTC data is invalid or corrupt
276274 */
277- static int decode (IptcData& iptcData, const byte* pData, uint32_t size);
275+ static int decode (IptcData& iptcData, const byte* pData, size_t size);
278276
279277 /* !
280278 @brief Encode the IPTC datasets from \em iptcData to a binary representation in IPTC IIM4 format.
0 commit comments