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
Remove DETAILS_AT_TOP (Doxygen)
[yazpp-moved-to-github.git]
/
src
/
gdu.cpp
diff --git
a/src/gdu.cpp
b/src/gdu.cpp
index
8df705e
..
10860cf
100644
(file)
--- a/
src/gdu.cpp
+++ b/
src/gdu.cpp
@@
-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)
{