@@ -88,11 +88,8 @@ UNIQUE_PTR(Exiv2::Value);
8888 }
8989%}
9090// DataValue constructor and DataValue::read can take a Python buffer
91- #if EXIV2_VERSION_HEX < 0x001c0000
92- INPUT_BUFFER_RO (const Exiv2::byte* buf, long len)
93- #else
94- INPUT_BUFFER_RO (const Exiv2::byte* buf, size_t len)
95- #endif
91+ INPUT_BUFFER_RO (const Exiv2::byte* buf, BUFLEN_T len)
92+
9693// Value::copy can write to a Python buffer
9794OUTPUT_BUFFER_RW (Exiv2::byte* buf,)
9895
@@ -196,10 +193,8 @@ static swig_type_info* get_swig_type(Exiv2::Value* value) {
196193
197194// Ignore now redundant overloaded methods
198195%ignore Exiv2::DataValue::DataValue ();
199- %ignore Exiv2::DataValue::DataValue (byte const *, long );
200- %ignore Exiv2::DataValue::DataValue (byte const *, long , ByteOrder);
201- %ignore Exiv2::DataValue::DataValue (byte const *, size_t );
202- %ignore Exiv2::DataValue::DataValue (byte const *, size_t , ByteOrder);
196+ %ignore Exiv2::DataValue::DataValue (byte const *, BUFLEN_T );
197+ %ignore Exiv2::DataValue::DataValue (byte const *, BUFLEN_T , ByteOrder);
203198%ignore Exiv2::Value::toFloat () const ;
204199%ignore Exiv2::Value::toInt64 () const ;
205200%ignore Exiv2::Value::toLong () const ;
@@ -252,8 +247,7 @@ DEPRECATED_ENUM(XmpValue, XmpStruct, "XMP structure indicator.",
252247%ignore type_name::value_;
253248// Ignore overloaded methods replaced by default typemaps
254249%ignore type_name::copy (byte *) const ;
255- %ignore type_name::read (byte const *, long );
256- %ignore type_name::read (byte const *, size_t );
250+ %ignore type_name::read (byte const *, BUFLEN_T );
257251%noexception type_name::~part_name;
258252%noexception type_name::__getitem__;
259253%noexception type_name::__setitem__;
@@ -271,13 +265,10 @@ VALUE_SUBCLASS(Exiv2::ValueType<item_type>, type_name)
271265// Ignore now overloaded constructors
272266%ignore Exiv2::ValueType<item_type>::ValueType(item_type const &);
273267#if EXIV2_VERSION_HEX < 0x001c0000
274- %ignore Exiv2::ValueType<item_type>::ValueType(
275- byte const *, long , ByteOrder);
276268%ignore Exiv2::ValueType<item_type>::ValueType();
277- #else
278- %ignore Exiv2::ValueType<item_type>::ValueType(
279- byte const *, size_t , ByteOrder);
280269#endif
270+ %ignore Exiv2::ValueType<item_type>::ValueType(
271+ byte const *, BUFLEN_T , ByteOrder);
281272// Also need to ignore equivalent primitive type definitions
282273%ignore Exiv2::ValueType<item_type>::ValueType(short const &);
283274%ignore Exiv2::ValueType<item_type>::ValueType(unsigned short const &);
0 commit comments