Example #1
0
func (o ClusterConfigMessage) XDRSize() int {
	return 4 + len(o.DeviceName) + xdr.Padding(len(o.DeviceName)) +
		4 + len(o.ClientName) + xdr.Padding(len(o.ClientName)) +
		4 + len(o.ClientVersion) + xdr.Padding(len(o.ClientVersion)) +
		4 + xdr.SizeOfSlice(o.Folders) +
		4 + xdr.SizeOfSlice(o.Options)
}
Example #2
0
func (o Device) XDRSize() int {
	return 4 + len(o.ID) + xdr.Padding(len(o.ID)) +
		4 + len(o.Name) + xdr.Padding(len(o.Name)) +
		4 + xdr.SizeOfSlice(o.Addresses) + 4 +
		4 + len(o.CertName) + xdr.Padding(len(o.CertName)) + 8 + 4 +
		4 + xdr.SizeOfSlice(o.Options)
}
Example #3
0
func (o XDRBenchStruct) XDRSize() int {
	return 8 + 4 + 4 + 4 +
		4 + len(o.Bs0) + xdr.Padding(len(o.Bs0)) +
		4 + len(o.Bs1) + xdr.Padding(len(o.Bs1)) +
		4 + len(o.Is0)*4 +
		4 + len(o.S0) + xdr.Padding(len(o.S0)) +
		4 + len(o.S1) + xdr.Padding(len(o.S1))
}
Example #4
0
func (o TestStruct) XDRSize() int {
	return 4 + 8 + 4 + 4 + 4 + 4 + 4 + 4 + 8 + 8 +
		4 + len(o.BS) + xdr.Padding(len(o.BS)) +
		4 + len(o.S) + xdr.Padding(len(o.S)) +
		o.C.XDRSize() +
		4 + xdr.SizeOfSlice(o.SS) +
		o.ES.XDRSize() +
		o.OS.XDRSize() +
		4 + xdr.SizeOfSlice(o.OSs)
}
Example #5
0
func (o FileInfo) XDRSize() int {
	return 4 + len(o.Name) + xdr.Padding(len(o.Name)) + 4 + 8 +
		o.Version.XDRSize() + 8 +
		4 + xdr.SizeOfSlice(o.Blocks)
}
Example #6
0
func (o BlockInfo) XDRSize() int {
	return 4 +
		4 + len(o.Hash) + xdr.Padding(len(o.Hash))
}
Example #7
0
func (o Option) XDRSize() int {
	return 4 + len(o.Key) + xdr.Padding(len(o.Key)) +
		4 + len(o.Value) + xdr.Padding(len(o.Value))
}
Example #8
0
func (o CloseMessage) XDRSize() int {
	return 4 + len(o.Reason) + xdr.Padding(len(o.Reason)) + 4
}
Example #9
0
func (o ConnectRequest) XDRSize() int {
	return 4 + len(o.ID) + xdr.Padding(len(o.ID))
}
Example #10
0
func (o FileDownloadProgressUpdate) XDRSize() int {
	return 4 +
		4 + len(o.Name) + xdr.Padding(len(o.Name)) +
		o.Version.XDRSize() +
		4 + len(o.BlockIndexes)*4
}
Example #11
0
func (o Version13HelloMessage) XDRSize() int {
	return 4 + len(o.DeviceName) + xdr.Padding(len(o.DeviceName)) +
		4 + len(o.ClientName) + xdr.Padding(len(o.ClientName)) +
		4 + len(o.ClientVersion) + xdr.Padding(len(o.ClientVersion))
}
Example #12
0
func (o ResponseMessage) XDRSize() int {
	return 4 + len(o.Data) + xdr.Padding(len(o.Data)) + 4
}
Example #13
0
func (o Relay) XDRSize() int {
	return 4 + len(o.URL) + xdr.Padding(len(o.URL)) + 4
}
func (o XDRA) XDRSize() int {
	return 4 + len(o.Name) + xdr.Padding(len(o.Name)) + 8 +
		4 + len(o.Phone) + xdr.Padding(len(o.Phone)) + 4 + 4 + 8
}
Example #15
0
func (o Address) XDRSize() int {
	return 4 + len(o.URL) + xdr.Padding(len(o.URL))
}
Example #16
0
func (o Device) XDRSize() int {
	return 4 + len(o.ID) + xdr.Padding(len(o.ID)) +
		4 + xdr.SizeOfSlice(o.Addresses) +
		4 + xdr.SizeOfSlice(o.Relays)
}
Example #17
0
func (o SessionInvitation) XDRSize() int {
	return 4 + len(o.From) + xdr.Padding(len(o.From)) +
		4 + len(o.Key) + xdr.Padding(len(o.Key)) +
		4 + len(o.Address) + xdr.Padding(len(o.Address)) + 4 + 4
}
Example #18
0
func (o RequestMessage) XDRSize() int {
	return 4 + len(o.Folder) + xdr.Padding(len(o.Folder)) +
		4 + len(o.Name) + xdr.Padding(len(o.Name)) + 8 + 4 +
		4 + len(o.Hash) + xdr.Padding(len(o.Hash)) + 4 +
		4 + xdr.SizeOfSlice(o.Options)
}
Example #19
0
func (o Folder) XDRSize() int {
	return 4 + len(o.ID) + xdr.Padding(len(o.ID)) +
		4 + len(o.Label) + xdr.Padding(len(o.Label)) +
		4 + xdr.SizeOfSlice(o.Devices) + 4 +
		4 + xdr.SizeOfSlice(o.Options)
}
Example #20
0
func (o IndexMessage) XDRSize() int {
	return 4 + len(o.Folder) + xdr.Padding(len(o.Folder)) +
		4 + xdr.SizeOfSlice(o.Files) + 4 +
		4 + xdr.SizeOfSlice(o.Options)
}
Example #21
0
func (o JoinSessionRequest) XDRSize() int {
	return 4 + len(o.Key) + xdr.Padding(len(o.Key))
}
Example #22
0
func (o DownloadProgressMessage) XDRSize() int {
	return 4 + len(o.Folder) + xdr.Padding(len(o.Folder)) +
		4 + xdr.SizeOfSlice(o.Updates) + 4 +
		4 + xdr.SizeOfSlice(o.Options)
}
Example #23
0
func (o Response) XDRSize() int {
	return 4 +
		4 + len(o.Message) + xdr.Padding(len(o.Message))
}
Example #24
0
func (o fileVersion) XDRSize() int {
	return o.version.XDRSize() +
		4 + len(o.device) + xdr.Padding(len(o.device))
}
Example #25
0
func (o OtherStruct) XDRSize() int {
	return 4 +
		4 + len(o.F2) + xdr.Padding(len(o.F2))
}