summaryrefslogtreecommitdiffstats
path: root/heimdall/source/FlashPartFileTransferPacket.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2012-10-01 04:43:05 +0200
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2012-10-01 17:41:25 +0200
commit6cd6b35c737e0e4042a8fd79af1decc9f10ed84b (patch)
tree89625119662474ef30c84f410c056343d412121b /heimdall/source/FlashPartFileTransferPacket.h
parentUpdated version to 1.3.2 and copyright notices to 2012. (diff)
downloadHeimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar
Heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar.gz
Heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar.bz2
Heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar.lz
Heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar.xz
Heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar.zst
Heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.zip
Diffstat (limited to 'heimdall/source/FlashPartFileTransferPacket.h')
-rw-r--r--heimdall/source/FlashPartFileTransferPacket.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/heimdall/source/FlashPartFileTransferPacket.h b/heimdall/source/FlashPartFileTransferPacket.h
index a444211..dcf3422 100644
--- a/heimdall/source/FlashPartFileTransferPacket.h
+++ b/heimdall/source/FlashPartFileTransferPacket.h
@@ -30,34 +30,26 @@ namespace Heimdall
{
private:
- unsigned short unknown;
- unsigned int transferCount;
+ unsigned int sequenceByteCount;
public:
- FlashPartFileTransferPacket(unsigned short unknown, unsigned int transferCount)
+ FlashPartFileTransferPacket(unsigned int sequenceByteCount)
: FileTransferPacket(FileTransferPacket::kRequestPart)
{
- this->unknown = unknown;
- this->transferCount = transferCount;
+ this->sequenceByteCount = sequenceByteCount;
}
- unsigned short GetUnknown(void) const
+ unsigned int GetSequenceByteCount(void) const
{
- return (unknown);
- }
-
- unsigned int GetTransferCount(void) const
- {
- return (transferCount);
+ return (sequenceByteCount);
}
void Pack(void)
{
FileTransferPacket::Pack();
- PackShort(FileTransferPacket::kDataSize, unknown);
- PackInteger(FileTransferPacket::kDataSize + 2, transferCount);
+ PackInteger(FileTransferPacket::kDataSize, sequenceByteCount);
}
};
}