message_xdr.go 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099
  1. // ************************************************************
  2. // This file is automatically generated by genxdr. Do not edit.
  3. // ************************************************************
  4. package protocol
  5. import (
  6. "github.com/calmh/xdr"
  7. )
  8. /*
  9. IndexMessage Structure:
  10. 0 1 2 3
  11. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  12. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  13. / /
  14. \ Folder (length + padded data) \
  15. / /
  16. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  17. | Number of Files |
  18. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  19. / /
  20. \ Zero or more FileInfo Structures \
  21. / /
  22. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  23. | Flags |
  24. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  25. | Number of Options |
  26. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  27. / /
  28. \ Zero or more Option Structures \
  29. / /
  30. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  31. struct IndexMessage {
  32. string Folder<256>;
  33. FileInfo Files<1000000>;
  34. unsigned int Flags;
  35. Option Options<64>;
  36. }
  37. */
  38. func (o IndexMessage) XDRSize() int {
  39. return 4 + len(o.Folder) + xdr.Padding(len(o.Folder)) +
  40. 4 + xdr.SizeOfSlice(o.Files) + 4 +
  41. 4 + xdr.SizeOfSlice(o.Options)
  42. }
  43. func (o IndexMessage) MarshalXDR() ([]byte, error) {
  44. buf := make([]byte, o.XDRSize())
  45. m := &xdr.Marshaller{Data: buf}
  46. return buf, o.MarshalXDRInto(m)
  47. }
  48. func (o IndexMessage) MustMarshalXDR() []byte {
  49. bs, err := o.MarshalXDR()
  50. if err != nil {
  51. panic(err)
  52. }
  53. return bs
  54. }
  55. func (o IndexMessage) MarshalXDRInto(m *xdr.Marshaller) error {
  56. if l := len(o.Folder); l > 256 {
  57. return xdr.ElementSizeExceeded("Folder", l, 256)
  58. }
  59. m.MarshalString(o.Folder)
  60. if l := len(o.Files); l > 1000000 {
  61. return xdr.ElementSizeExceeded("Files", l, 1000000)
  62. }
  63. m.MarshalUint32(uint32(len(o.Files)))
  64. for i := range o.Files {
  65. if err := o.Files[i].MarshalXDRInto(m); err != nil {
  66. return err
  67. }
  68. }
  69. m.MarshalUint32(o.Flags)
  70. if l := len(o.Options); l > 64 {
  71. return xdr.ElementSizeExceeded("Options", l, 64)
  72. }
  73. m.MarshalUint32(uint32(len(o.Options)))
  74. for i := range o.Options {
  75. if err := o.Options[i].MarshalXDRInto(m); err != nil {
  76. return err
  77. }
  78. }
  79. return m.Error
  80. }
  81. func (o *IndexMessage) UnmarshalXDR(bs []byte) error {
  82. u := &xdr.Unmarshaller{Data: bs}
  83. return o.UnmarshalXDRFrom(u)
  84. }
  85. func (o *IndexMessage) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  86. o.Folder = u.UnmarshalStringMax(256)
  87. _FilesSize := int(u.UnmarshalUint32())
  88. if _FilesSize < 0 {
  89. return xdr.ElementSizeExceeded("Files", _FilesSize, 1000000)
  90. } else if _FilesSize == 0 {
  91. o.Files = nil
  92. } else {
  93. if _FilesSize > 1000000 {
  94. return xdr.ElementSizeExceeded("Files", _FilesSize, 1000000)
  95. }
  96. if _FilesSize <= len(o.Files) {
  97. o.Files = o.Files[:_FilesSize]
  98. } else {
  99. o.Files = make([]FileInfo, _FilesSize)
  100. }
  101. for i := range o.Files {
  102. (&o.Files[i]).UnmarshalXDRFrom(u)
  103. }
  104. }
  105. o.Flags = u.UnmarshalUint32()
  106. _OptionsSize := int(u.UnmarshalUint32())
  107. if _OptionsSize < 0 {
  108. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  109. } else if _OptionsSize == 0 {
  110. o.Options = nil
  111. } else {
  112. if _OptionsSize > 64 {
  113. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  114. }
  115. if _OptionsSize <= len(o.Options) {
  116. o.Options = o.Options[:_OptionsSize]
  117. } else {
  118. o.Options = make([]Option, _OptionsSize)
  119. }
  120. for i := range o.Options {
  121. (&o.Options[i]).UnmarshalXDRFrom(u)
  122. }
  123. }
  124. return u.Error
  125. }
  126. /*
  127. FileInfo Structure:
  128. 0 1 2 3
  129. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  130. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  131. / /
  132. \ Name (length + padded data) \
  133. / /
  134. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  135. | Flags |
  136. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  137. | |
  138. + Modified (64 bits) +
  139. | |
  140. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  141. / /
  142. \ Vector Structure \
  143. / /
  144. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  145. | |
  146. + Local Version (64 bits) +
  147. | |
  148. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  149. | Number of Blocks |
  150. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  151. / /
  152. \ Zero or more BlockInfo Structures \
  153. / /
  154. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  155. struct FileInfo {
  156. string Name<8192>;
  157. unsigned int Flags;
  158. hyper Modified;
  159. Vector Version;
  160. hyper LocalVersion;
  161. BlockInfo Blocks<10000000>;
  162. }
  163. */
  164. func (o FileInfo) XDRSize() int {
  165. return 4 + len(o.Name) + xdr.Padding(len(o.Name)) + 4 + 8 +
  166. o.Version.XDRSize() + 8 +
  167. 4 + xdr.SizeOfSlice(o.Blocks)
  168. }
  169. func (o FileInfo) MarshalXDR() ([]byte, error) {
  170. buf := make([]byte, o.XDRSize())
  171. m := &xdr.Marshaller{Data: buf}
  172. return buf, o.MarshalXDRInto(m)
  173. }
  174. func (o FileInfo) MustMarshalXDR() []byte {
  175. bs, err := o.MarshalXDR()
  176. if err != nil {
  177. panic(err)
  178. }
  179. return bs
  180. }
  181. func (o FileInfo) MarshalXDRInto(m *xdr.Marshaller) error {
  182. if l := len(o.Name); l > 8192 {
  183. return xdr.ElementSizeExceeded("Name", l, 8192)
  184. }
  185. m.MarshalString(o.Name)
  186. m.MarshalUint32(o.Flags)
  187. m.MarshalUint64(uint64(o.Modified))
  188. if err := o.Version.MarshalXDRInto(m); err != nil {
  189. return err
  190. }
  191. m.MarshalUint64(uint64(o.LocalVersion))
  192. if l := len(o.Blocks); l > 10000000 {
  193. return xdr.ElementSizeExceeded("Blocks", l, 10000000)
  194. }
  195. m.MarshalUint32(uint32(len(o.Blocks)))
  196. for i := range o.Blocks {
  197. if err := o.Blocks[i].MarshalXDRInto(m); err != nil {
  198. return err
  199. }
  200. }
  201. return m.Error
  202. }
  203. func (o *FileInfo) UnmarshalXDR(bs []byte) error {
  204. u := &xdr.Unmarshaller{Data: bs}
  205. return o.UnmarshalXDRFrom(u)
  206. }
  207. func (o *FileInfo) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  208. o.Name = u.UnmarshalStringMax(8192)
  209. o.Flags = u.UnmarshalUint32()
  210. o.Modified = int64(u.UnmarshalUint64())
  211. (&o.Version).UnmarshalXDRFrom(u)
  212. o.LocalVersion = int64(u.UnmarshalUint64())
  213. _BlocksSize := int(u.UnmarshalUint32())
  214. if _BlocksSize < 0 {
  215. return xdr.ElementSizeExceeded("Blocks", _BlocksSize, 10000000)
  216. } else if _BlocksSize == 0 {
  217. o.Blocks = nil
  218. } else {
  219. if _BlocksSize > 10000000 {
  220. return xdr.ElementSizeExceeded("Blocks", _BlocksSize, 10000000)
  221. }
  222. if _BlocksSize <= len(o.Blocks) {
  223. o.Blocks = o.Blocks[:_BlocksSize]
  224. } else {
  225. o.Blocks = make([]BlockInfo, _BlocksSize)
  226. }
  227. for i := range o.Blocks {
  228. (&o.Blocks[i]).UnmarshalXDRFrom(u)
  229. }
  230. }
  231. return u.Error
  232. }
  233. /*
  234. BlockInfo Structure:
  235. 0 1 2 3
  236. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  237. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  238. | Size |
  239. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  240. / /
  241. \ Hash (length + padded data) \
  242. / /
  243. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  244. struct BlockInfo {
  245. int Size;
  246. opaque Hash<64>;
  247. }
  248. */
  249. func (o BlockInfo) XDRSize() int {
  250. return 4 +
  251. 4 + len(o.Hash) + xdr.Padding(len(o.Hash))
  252. }
  253. func (o BlockInfo) MarshalXDR() ([]byte, error) {
  254. buf := make([]byte, o.XDRSize())
  255. m := &xdr.Marshaller{Data: buf}
  256. return buf, o.MarshalXDRInto(m)
  257. }
  258. func (o BlockInfo) MustMarshalXDR() []byte {
  259. bs, err := o.MarshalXDR()
  260. if err != nil {
  261. panic(err)
  262. }
  263. return bs
  264. }
  265. func (o BlockInfo) MarshalXDRInto(m *xdr.Marshaller) error {
  266. m.MarshalUint32(uint32(o.Size))
  267. if l := len(o.Hash); l > 64 {
  268. return xdr.ElementSizeExceeded("Hash", l, 64)
  269. }
  270. m.MarshalBytes(o.Hash)
  271. return m.Error
  272. }
  273. func (o *BlockInfo) UnmarshalXDR(bs []byte) error {
  274. u := &xdr.Unmarshaller{Data: bs}
  275. return o.UnmarshalXDRFrom(u)
  276. }
  277. func (o *BlockInfo) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  278. o.Size = int32(u.UnmarshalUint32())
  279. o.Hash = u.UnmarshalBytesMax(64)
  280. return u.Error
  281. }
  282. /*
  283. RequestMessage Structure:
  284. 0 1 2 3
  285. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  286. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  287. / /
  288. \ Folder (length + padded data) \
  289. / /
  290. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  291. / /
  292. \ Name (length + padded data) \
  293. / /
  294. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  295. | |
  296. + Offset (64 bits) +
  297. | |
  298. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  299. | Size |
  300. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  301. / /
  302. \ Hash (length + padded data) \
  303. / /
  304. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  305. | Flags |
  306. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  307. | Number of Options |
  308. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  309. / /
  310. \ Zero or more Option Structures \
  311. / /
  312. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  313. struct RequestMessage {
  314. string Folder<256>;
  315. string Name<8192>;
  316. hyper Offset;
  317. int Size;
  318. opaque Hash<64>;
  319. unsigned int Flags;
  320. Option Options<64>;
  321. }
  322. */
  323. func (o RequestMessage) XDRSize() int {
  324. return 4 + len(o.Folder) + xdr.Padding(len(o.Folder)) +
  325. 4 + len(o.Name) + xdr.Padding(len(o.Name)) + 8 + 4 +
  326. 4 + len(o.Hash) + xdr.Padding(len(o.Hash)) + 4 +
  327. 4 + xdr.SizeOfSlice(o.Options)
  328. }
  329. func (o RequestMessage) MarshalXDR() ([]byte, error) {
  330. buf := make([]byte, o.XDRSize())
  331. m := &xdr.Marshaller{Data: buf}
  332. return buf, o.MarshalXDRInto(m)
  333. }
  334. func (o RequestMessage) MustMarshalXDR() []byte {
  335. bs, err := o.MarshalXDR()
  336. if err != nil {
  337. panic(err)
  338. }
  339. return bs
  340. }
  341. func (o RequestMessage) MarshalXDRInto(m *xdr.Marshaller) error {
  342. if l := len(o.Folder); l > 256 {
  343. return xdr.ElementSizeExceeded("Folder", l, 256)
  344. }
  345. m.MarshalString(o.Folder)
  346. if l := len(o.Name); l > 8192 {
  347. return xdr.ElementSizeExceeded("Name", l, 8192)
  348. }
  349. m.MarshalString(o.Name)
  350. m.MarshalUint64(uint64(o.Offset))
  351. m.MarshalUint32(uint32(o.Size))
  352. if l := len(o.Hash); l > 64 {
  353. return xdr.ElementSizeExceeded("Hash", l, 64)
  354. }
  355. m.MarshalBytes(o.Hash)
  356. m.MarshalUint32(o.Flags)
  357. if l := len(o.Options); l > 64 {
  358. return xdr.ElementSizeExceeded("Options", l, 64)
  359. }
  360. m.MarshalUint32(uint32(len(o.Options)))
  361. for i := range o.Options {
  362. if err := o.Options[i].MarshalXDRInto(m); err != nil {
  363. return err
  364. }
  365. }
  366. return m.Error
  367. }
  368. func (o *RequestMessage) UnmarshalXDR(bs []byte) error {
  369. u := &xdr.Unmarshaller{Data: bs}
  370. return o.UnmarshalXDRFrom(u)
  371. }
  372. func (o *RequestMessage) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  373. o.Folder = u.UnmarshalStringMax(256)
  374. o.Name = u.UnmarshalStringMax(8192)
  375. o.Offset = int64(u.UnmarshalUint64())
  376. o.Size = int32(u.UnmarshalUint32())
  377. o.Hash = u.UnmarshalBytesMax(64)
  378. o.Flags = u.UnmarshalUint32()
  379. _OptionsSize := int(u.UnmarshalUint32())
  380. if _OptionsSize < 0 {
  381. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  382. } else if _OptionsSize == 0 {
  383. o.Options = nil
  384. } else {
  385. if _OptionsSize > 64 {
  386. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  387. }
  388. if _OptionsSize <= len(o.Options) {
  389. o.Options = o.Options[:_OptionsSize]
  390. } else {
  391. o.Options = make([]Option, _OptionsSize)
  392. }
  393. for i := range o.Options {
  394. (&o.Options[i]).UnmarshalXDRFrom(u)
  395. }
  396. }
  397. return u.Error
  398. }
  399. /*
  400. ResponseMessage Structure:
  401. 0 1 2 3
  402. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  403. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  404. / /
  405. \ Data (length + padded data) \
  406. / /
  407. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  408. | Code |
  409. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  410. struct ResponseMessage {
  411. opaque Data<>;
  412. int Code;
  413. }
  414. */
  415. func (o ResponseMessage) XDRSize() int {
  416. return 4 + len(o.Data) + xdr.Padding(len(o.Data)) + 4
  417. }
  418. func (o ResponseMessage) MarshalXDR() ([]byte, error) {
  419. buf := make([]byte, o.XDRSize())
  420. m := &xdr.Marshaller{Data: buf}
  421. return buf, o.MarshalXDRInto(m)
  422. }
  423. func (o ResponseMessage) MustMarshalXDR() []byte {
  424. bs, err := o.MarshalXDR()
  425. if err != nil {
  426. panic(err)
  427. }
  428. return bs
  429. }
  430. func (o ResponseMessage) MarshalXDRInto(m *xdr.Marshaller) error {
  431. m.MarshalBytes(o.Data)
  432. m.MarshalUint32(uint32(o.Code))
  433. return m.Error
  434. }
  435. func (o *ResponseMessage) UnmarshalXDR(bs []byte) error {
  436. u := &xdr.Unmarshaller{Data: bs}
  437. return o.UnmarshalXDRFrom(u)
  438. }
  439. func (o *ResponseMessage) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  440. o.Data = u.UnmarshalBytes()
  441. o.Code = int32(u.UnmarshalUint32())
  442. return u.Error
  443. }
  444. /*
  445. ClusterConfigMessage Structure:
  446. 0 1 2 3
  447. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  448. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  449. / /
  450. \ Device Name (length + padded data) \
  451. / /
  452. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  453. / /
  454. \ Client Name (length + padded data) \
  455. / /
  456. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  457. / /
  458. \ Client Version (length + padded data) \
  459. / /
  460. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  461. | Number of Folders |
  462. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  463. / /
  464. \ Zero or more Folder Structures \
  465. / /
  466. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  467. | Number of Options |
  468. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  469. / /
  470. \ Zero or more Option Structures \
  471. / /
  472. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  473. struct ClusterConfigMessage {
  474. string DeviceName<64>;
  475. string ClientName<64>;
  476. string ClientVersion<64>;
  477. Folder Folders<1000000>;
  478. Option Options<64>;
  479. }
  480. */
  481. func (o ClusterConfigMessage) XDRSize() int {
  482. return 4 + len(o.DeviceName) + xdr.Padding(len(o.DeviceName)) +
  483. 4 + len(o.ClientName) + xdr.Padding(len(o.ClientName)) +
  484. 4 + len(o.ClientVersion) + xdr.Padding(len(o.ClientVersion)) +
  485. 4 + xdr.SizeOfSlice(o.Folders) +
  486. 4 + xdr.SizeOfSlice(o.Options)
  487. }
  488. func (o ClusterConfigMessage) MarshalXDR() ([]byte, error) {
  489. buf := make([]byte, o.XDRSize())
  490. m := &xdr.Marshaller{Data: buf}
  491. return buf, o.MarshalXDRInto(m)
  492. }
  493. func (o ClusterConfigMessage) MustMarshalXDR() []byte {
  494. bs, err := o.MarshalXDR()
  495. if err != nil {
  496. panic(err)
  497. }
  498. return bs
  499. }
  500. func (o ClusterConfigMessage) MarshalXDRInto(m *xdr.Marshaller) error {
  501. if l := len(o.DeviceName); l > 64 {
  502. return xdr.ElementSizeExceeded("DeviceName", l, 64)
  503. }
  504. m.MarshalString(o.DeviceName)
  505. if l := len(o.ClientName); l > 64 {
  506. return xdr.ElementSizeExceeded("ClientName", l, 64)
  507. }
  508. m.MarshalString(o.ClientName)
  509. if l := len(o.ClientVersion); l > 64 {
  510. return xdr.ElementSizeExceeded("ClientVersion", l, 64)
  511. }
  512. m.MarshalString(o.ClientVersion)
  513. if l := len(o.Folders); l > 1000000 {
  514. return xdr.ElementSizeExceeded("Folders", l, 1000000)
  515. }
  516. m.MarshalUint32(uint32(len(o.Folders)))
  517. for i := range o.Folders {
  518. if err := o.Folders[i].MarshalXDRInto(m); err != nil {
  519. return err
  520. }
  521. }
  522. if l := len(o.Options); l > 64 {
  523. return xdr.ElementSizeExceeded("Options", l, 64)
  524. }
  525. m.MarshalUint32(uint32(len(o.Options)))
  526. for i := range o.Options {
  527. if err := o.Options[i].MarshalXDRInto(m); err != nil {
  528. return err
  529. }
  530. }
  531. return m.Error
  532. }
  533. func (o *ClusterConfigMessage) UnmarshalXDR(bs []byte) error {
  534. u := &xdr.Unmarshaller{Data: bs}
  535. return o.UnmarshalXDRFrom(u)
  536. }
  537. func (o *ClusterConfigMessage) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  538. o.DeviceName = u.UnmarshalStringMax(64)
  539. o.ClientName = u.UnmarshalStringMax(64)
  540. o.ClientVersion = u.UnmarshalStringMax(64)
  541. _FoldersSize := int(u.UnmarshalUint32())
  542. if _FoldersSize < 0 {
  543. return xdr.ElementSizeExceeded("Folders", _FoldersSize, 1000000)
  544. } else if _FoldersSize == 0 {
  545. o.Folders = nil
  546. } else {
  547. if _FoldersSize > 1000000 {
  548. return xdr.ElementSizeExceeded("Folders", _FoldersSize, 1000000)
  549. }
  550. if _FoldersSize <= len(o.Folders) {
  551. o.Folders = o.Folders[:_FoldersSize]
  552. } else {
  553. o.Folders = make([]Folder, _FoldersSize)
  554. }
  555. for i := range o.Folders {
  556. (&o.Folders[i]).UnmarshalXDRFrom(u)
  557. }
  558. }
  559. _OptionsSize := int(u.UnmarshalUint32())
  560. if _OptionsSize < 0 {
  561. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  562. } else if _OptionsSize == 0 {
  563. o.Options = nil
  564. } else {
  565. if _OptionsSize > 64 {
  566. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  567. }
  568. if _OptionsSize <= len(o.Options) {
  569. o.Options = o.Options[:_OptionsSize]
  570. } else {
  571. o.Options = make([]Option, _OptionsSize)
  572. }
  573. for i := range o.Options {
  574. (&o.Options[i]).UnmarshalXDRFrom(u)
  575. }
  576. }
  577. return u.Error
  578. }
  579. /*
  580. Folder Structure:
  581. 0 1 2 3
  582. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  583. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  584. / /
  585. \ ID (length + padded data) \
  586. / /
  587. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  588. | Number of Devices |
  589. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  590. / /
  591. \ Zero or more Device Structures \
  592. / /
  593. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  594. | Flags |
  595. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  596. | Number of Options |
  597. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  598. / /
  599. \ Zero or more Option Structures \
  600. / /
  601. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  602. struct Folder {
  603. string ID<256>;
  604. Device Devices<1000000>;
  605. unsigned int Flags;
  606. Option Options<64>;
  607. }
  608. */
  609. func (o Folder) XDRSize() int {
  610. return 4 + len(o.ID) + xdr.Padding(len(o.ID)) +
  611. 4 + xdr.SizeOfSlice(o.Devices) + 4 +
  612. 4 + xdr.SizeOfSlice(o.Options)
  613. }
  614. func (o Folder) MarshalXDR() ([]byte, error) {
  615. buf := make([]byte, o.XDRSize())
  616. m := &xdr.Marshaller{Data: buf}
  617. return buf, o.MarshalXDRInto(m)
  618. }
  619. func (o Folder) MustMarshalXDR() []byte {
  620. bs, err := o.MarshalXDR()
  621. if err != nil {
  622. panic(err)
  623. }
  624. return bs
  625. }
  626. func (o Folder) MarshalXDRInto(m *xdr.Marshaller) error {
  627. if l := len(o.ID); l > 256 {
  628. return xdr.ElementSizeExceeded("ID", l, 256)
  629. }
  630. m.MarshalString(o.ID)
  631. if l := len(o.Devices); l > 1000000 {
  632. return xdr.ElementSizeExceeded("Devices", l, 1000000)
  633. }
  634. m.MarshalUint32(uint32(len(o.Devices)))
  635. for i := range o.Devices {
  636. if err := o.Devices[i].MarshalXDRInto(m); err != nil {
  637. return err
  638. }
  639. }
  640. m.MarshalUint32(o.Flags)
  641. if l := len(o.Options); l > 64 {
  642. return xdr.ElementSizeExceeded("Options", l, 64)
  643. }
  644. m.MarshalUint32(uint32(len(o.Options)))
  645. for i := range o.Options {
  646. if err := o.Options[i].MarshalXDRInto(m); err != nil {
  647. return err
  648. }
  649. }
  650. return m.Error
  651. }
  652. func (o *Folder) UnmarshalXDR(bs []byte) error {
  653. u := &xdr.Unmarshaller{Data: bs}
  654. return o.UnmarshalXDRFrom(u)
  655. }
  656. func (o *Folder) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  657. o.ID = u.UnmarshalStringMax(256)
  658. _DevicesSize := int(u.UnmarshalUint32())
  659. if _DevicesSize < 0 {
  660. return xdr.ElementSizeExceeded("Devices", _DevicesSize, 1000000)
  661. } else if _DevicesSize == 0 {
  662. o.Devices = nil
  663. } else {
  664. if _DevicesSize > 1000000 {
  665. return xdr.ElementSizeExceeded("Devices", _DevicesSize, 1000000)
  666. }
  667. if _DevicesSize <= len(o.Devices) {
  668. o.Devices = o.Devices[:_DevicesSize]
  669. } else {
  670. o.Devices = make([]Device, _DevicesSize)
  671. }
  672. for i := range o.Devices {
  673. (&o.Devices[i]).UnmarshalXDRFrom(u)
  674. }
  675. }
  676. o.Flags = u.UnmarshalUint32()
  677. _OptionsSize := int(u.UnmarshalUint32())
  678. if _OptionsSize < 0 {
  679. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  680. } else if _OptionsSize == 0 {
  681. o.Options = nil
  682. } else {
  683. if _OptionsSize > 64 {
  684. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  685. }
  686. if _OptionsSize <= len(o.Options) {
  687. o.Options = o.Options[:_OptionsSize]
  688. } else {
  689. o.Options = make([]Option, _OptionsSize)
  690. }
  691. for i := range o.Options {
  692. (&o.Options[i]).UnmarshalXDRFrom(u)
  693. }
  694. }
  695. return u.Error
  696. }
  697. /*
  698. Device Structure:
  699. 0 1 2 3
  700. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  701. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  702. / /
  703. \ ID (length + padded data) \
  704. / /
  705. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  706. / /
  707. \ Name (length + padded data) \
  708. / /
  709. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  710. | Number of Addresses |
  711. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  712. / /
  713. / /
  714. \ Addresses (length + padded data) \
  715. / /
  716. / /
  717. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  718. | Compression |
  719. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  720. / /
  721. \ Cert Name (length + padded data) \
  722. / /
  723. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  724. | |
  725. + Max Local Version (64 bits) +
  726. | |
  727. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  728. | Flags |
  729. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  730. | Number of Options |
  731. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  732. / /
  733. \ Zero or more Option Structures \
  734. / /
  735. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  736. struct Device {
  737. opaque ID<32>;
  738. string Name<64>;
  739. string Addresses<64>;
  740. unsigned int Compression;
  741. string CertName<64>;
  742. hyper MaxLocalVersion;
  743. unsigned int Flags;
  744. Option Options<64>;
  745. }
  746. */
  747. func (o Device) XDRSize() int {
  748. return 4 + len(o.ID) + xdr.Padding(len(o.ID)) +
  749. 4 + len(o.Name) + xdr.Padding(len(o.Name)) +
  750. 4 + xdr.SizeOfSlice(o.Addresses) + 4 +
  751. 4 + len(o.CertName) + xdr.Padding(len(o.CertName)) + 8 + 4 +
  752. 4 + xdr.SizeOfSlice(o.Options)
  753. }
  754. func (o Device) MarshalXDR() ([]byte, error) {
  755. buf := make([]byte, o.XDRSize())
  756. m := &xdr.Marshaller{Data: buf}
  757. return buf, o.MarshalXDRInto(m)
  758. }
  759. func (o Device) MustMarshalXDR() []byte {
  760. bs, err := o.MarshalXDR()
  761. if err != nil {
  762. panic(err)
  763. }
  764. return bs
  765. }
  766. func (o Device) MarshalXDRInto(m *xdr.Marshaller) error {
  767. if l := len(o.ID); l > 32 {
  768. return xdr.ElementSizeExceeded("ID", l, 32)
  769. }
  770. m.MarshalBytes(o.ID)
  771. if l := len(o.Name); l > 64 {
  772. return xdr.ElementSizeExceeded("Name", l, 64)
  773. }
  774. m.MarshalString(o.Name)
  775. if l := len(o.Addresses); l > 64 {
  776. return xdr.ElementSizeExceeded("Addresses", l, 64)
  777. }
  778. m.MarshalUint32(uint32(len(o.Addresses)))
  779. for i := range o.Addresses {
  780. m.MarshalString(o.Addresses[i])
  781. }
  782. m.MarshalUint32(o.Compression)
  783. if l := len(o.CertName); l > 64 {
  784. return xdr.ElementSizeExceeded("CertName", l, 64)
  785. }
  786. m.MarshalString(o.CertName)
  787. m.MarshalUint64(uint64(o.MaxLocalVersion))
  788. m.MarshalUint32(o.Flags)
  789. if l := len(o.Options); l > 64 {
  790. return xdr.ElementSizeExceeded("Options", l, 64)
  791. }
  792. m.MarshalUint32(uint32(len(o.Options)))
  793. for i := range o.Options {
  794. if err := o.Options[i].MarshalXDRInto(m); err != nil {
  795. return err
  796. }
  797. }
  798. return m.Error
  799. }
  800. func (o *Device) UnmarshalXDR(bs []byte) error {
  801. u := &xdr.Unmarshaller{Data: bs}
  802. return o.UnmarshalXDRFrom(u)
  803. }
  804. func (o *Device) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  805. o.ID = u.UnmarshalBytesMax(32)
  806. o.Name = u.UnmarshalStringMax(64)
  807. _AddressesSize := int(u.UnmarshalUint32())
  808. if _AddressesSize < 0 {
  809. return xdr.ElementSizeExceeded("Addresses", _AddressesSize, 64)
  810. } else if _AddressesSize == 0 {
  811. o.Addresses = nil
  812. } else {
  813. if _AddressesSize > 64 {
  814. return xdr.ElementSizeExceeded("Addresses", _AddressesSize, 64)
  815. }
  816. if _AddressesSize <= len(o.Addresses) {
  817. for i := _AddressesSize; i < len(o.Addresses); i++ {
  818. o.Addresses[i] = ""
  819. }
  820. o.Addresses = o.Addresses[:_AddressesSize]
  821. } else {
  822. o.Addresses = make([]string, _AddressesSize)
  823. }
  824. for i := range o.Addresses {
  825. o.Addresses[i] = u.UnmarshalStringMax(2083)
  826. }
  827. }
  828. o.Compression = u.UnmarshalUint32()
  829. o.CertName = u.UnmarshalStringMax(64)
  830. o.MaxLocalVersion = int64(u.UnmarshalUint64())
  831. o.Flags = u.UnmarshalUint32()
  832. _OptionsSize := int(u.UnmarshalUint32())
  833. if _OptionsSize < 0 {
  834. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  835. } else if _OptionsSize == 0 {
  836. o.Options = nil
  837. } else {
  838. if _OptionsSize > 64 {
  839. return xdr.ElementSizeExceeded("Options", _OptionsSize, 64)
  840. }
  841. if _OptionsSize <= len(o.Options) {
  842. o.Options = o.Options[:_OptionsSize]
  843. } else {
  844. o.Options = make([]Option, _OptionsSize)
  845. }
  846. for i := range o.Options {
  847. (&o.Options[i]).UnmarshalXDRFrom(u)
  848. }
  849. }
  850. return u.Error
  851. }
  852. /*
  853. Option Structure:
  854. 0 1 2 3
  855. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  856. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  857. / /
  858. \ Key (length + padded data) \
  859. / /
  860. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  861. / /
  862. \ Value (length + padded data) \
  863. / /
  864. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  865. struct Option {
  866. string Key<64>;
  867. string Value<1024>;
  868. }
  869. */
  870. func (o Option) XDRSize() int {
  871. return 4 + len(o.Key) + xdr.Padding(len(o.Key)) +
  872. 4 + len(o.Value) + xdr.Padding(len(o.Value))
  873. }
  874. func (o Option) MarshalXDR() ([]byte, error) {
  875. buf := make([]byte, o.XDRSize())
  876. m := &xdr.Marshaller{Data: buf}
  877. return buf, o.MarshalXDRInto(m)
  878. }
  879. func (o Option) MustMarshalXDR() []byte {
  880. bs, err := o.MarshalXDR()
  881. if err != nil {
  882. panic(err)
  883. }
  884. return bs
  885. }
  886. func (o Option) MarshalXDRInto(m *xdr.Marshaller) error {
  887. if l := len(o.Key); l > 64 {
  888. return xdr.ElementSizeExceeded("Key", l, 64)
  889. }
  890. m.MarshalString(o.Key)
  891. if l := len(o.Value); l > 1024 {
  892. return xdr.ElementSizeExceeded("Value", l, 1024)
  893. }
  894. m.MarshalString(o.Value)
  895. return m.Error
  896. }
  897. func (o *Option) UnmarshalXDR(bs []byte) error {
  898. u := &xdr.Unmarshaller{Data: bs}
  899. return o.UnmarshalXDRFrom(u)
  900. }
  901. func (o *Option) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  902. o.Key = u.UnmarshalStringMax(64)
  903. o.Value = u.UnmarshalStringMax(1024)
  904. return u.Error
  905. }
  906. /*
  907. CloseMessage Structure:
  908. 0 1 2 3
  909. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  910. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  911. / /
  912. \ Reason (length + padded data) \
  913. / /
  914. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  915. | Code |
  916. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  917. struct CloseMessage {
  918. string Reason<1024>;
  919. int Code;
  920. }
  921. */
  922. func (o CloseMessage) XDRSize() int {
  923. return 4 + len(o.Reason) + xdr.Padding(len(o.Reason)) + 4
  924. }
  925. func (o CloseMessage) MarshalXDR() ([]byte, error) {
  926. buf := make([]byte, o.XDRSize())
  927. m := &xdr.Marshaller{Data: buf}
  928. return buf, o.MarshalXDRInto(m)
  929. }
  930. func (o CloseMessage) MustMarshalXDR() []byte {
  931. bs, err := o.MarshalXDR()
  932. if err != nil {
  933. panic(err)
  934. }
  935. return bs
  936. }
  937. func (o CloseMessage) MarshalXDRInto(m *xdr.Marshaller) error {
  938. if l := len(o.Reason); l > 1024 {
  939. return xdr.ElementSizeExceeded("Reason", l, 1024)
  940. }
  941. m.MarshalString(o.Reason)
  942. m.MarshalUint32(uint32(o.Code))
  943. return m.Error
  944. }
  945. func (o *CloseMessage) UnmarshalXDR(bs []byte) error {
  946. u := &xdr.Unmarshaller{Data: bs}
  947. return o.UnmarshalXDRFrom(u)
  948. }
  949. func (o *CloseMessage) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  950. o.Reason = u.UnmarshalStringMax(1024)
  951. o.Code = int32(u.UnmarshalUint32())
  952. return u.Error
  953. }
  954. /*
  955. EmptyMessage Structure:
  956. (contains no fields)
  957. struct EmptyMessage {
  958. }
  959. */
  960. func (o EmptyMessage) XDRSize() int {
  961. return 0
  962. }
  963. func (o EmptyMessage) MarshalXDR() ([]byte, error) {
  964. return nil, nil
  965. }
  966. func (o EmptyMessage) MustMarshalXDR() []byte {
  967. return nil
  968. }
  969. func (o EmptyMessage) MarshalXDRInto(m *xdr.Marshaller) error {
  970. return nil
  971. }
  972. func (o *EmptyMessage) UnmarshalXDR(bs []byte) error {
  973. return nil
  974. }
  975. func (o *EmptyMessage) UnmarshalXDRFrom(u *xdr.Unmarshaller) error {
  976. return nil
  977. }