projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update news
[yazpp-moved-to-github.git]
/
src
/
gdu.cpp
diff --git
a/src/gdu.cpp
b/src/gdu.cpp
index
987f4b9
..
f6e0594
100644
(file)
--- a/
src/gdu.cpp
+++ b/
src/gdu.cpp
@@
-1,5
+1,5
@@
/* This file is part of the yazpp toolkit.
/* This file is part of the yazpp toolkit.
- * Copyright (C) 1998-2009 Index Data and Mike Taylor
+ * Copyright (C) 1998-2010 Index Data and Mike Taylor
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-46,6
+46,15
@@
void GDU::base(Z_GDU *gdu, ODR encode)
odr_destroy(encode);
}
odr_destroy(encode);
}
+int GDU::get_size()
+{
+ int len = 0;
+ ODR encode = odr_createmem(ODR_ENCODE);
+ if (m_gdu && z_GDU(encode, &m_gdu, 0, "encode"))
+ odr_getbuf(encode, &len, 0);
+ odr_destroy(encode);
+ return len;
+}
GDU &GDU::operator=(const GDU &g)
{
GDU &GDU::operator=(const GDU &g)
{
@@
-82,6
+91,7
@@
void GDU::move_away_gdu(ODR dst, Z_GDU **gdu)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab