Closed Bug 1216407 Opened 10 years ago Closed 10 years ago

Use mozilla/Endian.h for NfcService

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Tracking Status
firefox46 --- fixed

People

(Reporter: allstars.chh, Assigned: tnguyen)

References

Details

Attachments

(1 file)

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: nobody → tnguyen
Status: NEW → ASSIGNED
Attached patch Patch V1Splinter Review
Using Endian.h to read the first uint32_t value (data size)
Attachment #8700944 - Flags: review?(allstars.chh)
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+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: