Closed
Bug 1216407
Opened 10 years ago
Closed 10 years ago
Use mozilla/Endian.h for NfcService
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(firefox46 fixed)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| firefox46 | --- | fixed |
People
(Reporter: allstars.chh, Assigned: tnguyen)
References
Details
Attachments
(1 file)
|
1.74 KB,
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
In NfcService we did BigEndian->LittleEndian conversion in [1],
we should use mozilla/Endian.h to leverage this.
[1]: https://dxr.mozilla.org/mozilla-central/source/dom/nfc/gonk/NfcService.cpp#336
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → tnguyen
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•10 years ago
|
||
Using Endian.h to read the first uint32_t value (data size)
Attachment #8700944 -
Flags: review?(allstars.chh)
| Reporter | ||
Comment 2•10 years ago
|
||
Comment on attachment 8700944 [details] [diff] [review]
Patch V1
Review of attachment 8700944 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/nfc/gonk/NfcService.cpp
@@ +334,5 @@
>
> while (aBuffer->GetSize()) {
> const uint8_t* data = aBuffer->GetData();
> + uint32_t parcelSize = BigEndian::readUint32(data);
> +
remove extra line
Attachment #8700944 -
Flags: review?(allstars.chh) → review+
| Assignee | ||
Comment 3•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•10 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•