예제 #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)
}
예제 #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)
}
예제 #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))
}
예제 #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)
}
예제 #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)
}
예제 #6
0
func (o BlockInfo) XDRSize() int {
	return 4 +
		4 + len(o.Hash) + xdr.Padding(len(o.Hash))
}
예제 #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))
}
예제 #8
0
func (o CloseMessage) XDRSize() int {
	return 4 + len(o.Reason) + xdr.Padding(len(o.Reason)) + 4
}
예제 #9
0
func (o ConnectRequest) XDRSize() int {
	return 4 + len(o.ID) + xdr.Padding(len(o.ID))
}
예제 #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
}
예제 #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))
}
예제 #12
0
func (o ResponseMessage) XDRSize() int {
	return 4 + len(o.Data) + xdr.Padding(len(o.Data)) + 4
}
예제 #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
}
예제 #15
0
func (o Address) XDRSize() int {
	return 4 + len(o.URL) + xdr.Padding(len(o.URL))
}
예제 #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)
}
예제 #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
}
예제 #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)
}
예제 #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)
}
예제 #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)
}
예제 #21
0
func (o JoinSessionRequest) XDRSize() int {
	return 4 + len(o.Key) + xdr.Padding(len(o.Key))
}
예제 #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)
}
예제 #23
0
func (o Response) XDRSize() int {
	return 4 +
		4 + len(o.Message) + xdr.Padding(len(o.Message))
}
예제 #24
0
func (o fileVersion) XDRSize() int {
	return o.version.XDRSize() +
		4 + len(o.device) + xdr.Padding(len(o.device))
}
예제 #25
0
func (o OtherStruct) XDRSize() int {
	return 4 +
		4 + len(o.F2) + xdr.Padding(len(o.F2))
}