mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 847838 - Part 2: cache record size. r=vicamo
This commit is contained in:
parent
2ebd003aba
commit
c3d23f6b51
@ -10270,6 +10270,11 @@ let ICCRecordHelper = {
|
||||
onerror: onerror});
|
||||
},
|
||||
|
||||
/**
|
||||
* Cache EF_IAP record size.
|
||||
*/
|
||||
_iapRecordSize: null,
|
||||
|
||||
/**
|
||||
* Read ICC EF_IAP. (Index Administration Phonebook)
|
||||
*
|
||||
@ -10284,6 +10289,7 @@ let ICCRecordHelper = {
|
||||
function callback(options) {
|
||||
let strLen = Buf.readUint32();
|
||||
let octetLen = strLen / 2;
|
||||
this._iapRecordSize = options.recordSize;
|
||||
|
||||
let iap = GsmPDUHelper.readHexOctetArray(octetLen);
|
||||
Buf.readStringDelimiter(strLen);
|
||||
@ -10295,10 +10301,16 @@ let ICCRecordHelper = {
|
||||
|
||||
ICCIOHelper.loadLinearFixedEF({fileId: fileId,
|
||||
recordNumber: recordNumber,
|
||||
recordSize: this._iapRecordSize,
|
||||
callback: callback.bind(this),
|
||||
onerror: onerror});
|
||||
},
|
||||
|
||||
/**
|
||||
* Cache EF_Email record size.
|
||||
*/
|
||||
_emailRecordSize: null,
|
||||
|
||||
/**
|
||||
* Read USIM Phonebook EF_EMAIL.
|
||||
*
|
||||
@ -10315,6 +10327,7 @@ let ICCRecordHelper = {
|
||||
let strLen = Buf.readUint32();
|
||||
let octetLen = strLen / 2;
|
||||
let email = null;
|
||||
this._emailRecordSize = options.recordSize;
|
||||
|
||||
// Read contact's email
|
||||
//
|
||||
@ -10342,10 +10355,16 @@ let ICCRecordHelper = {
|
||||
|
||||
ICCIOHelper.loadLinearFixedEF({fileId: fileId,
|
||||
recordNumber: recordNumber,
|
||||
recordSize: this._emailRecordSize,
|
||||
callback: callback.bind(this),
|
||||
onerror: onerror});
|
||||
},
|
||||
|
||||
/**
|
||||
* Cache EF_ANR record size.
|
||||
*/
|
||||
_anrRecordSize: null,
|
||||
|
||||
/**
|
||||
* Read USIM Phonebook EF_ANR.
|
||||
*
|
||||
@ -10362,6 +10381,7 @@ let ICCRecordHelper = {
|
||||
let strLen = Buf.readUint32();
|
||||
let octetLen = strLen / 2;
|
||||
let number = null;
|
||||
this._anrRecordSize = options.recordSize;
|
||||
|
||||
// Skip ANR Record ID.
|
||||
Buf.seekIncoming(1 * PDU_HEX_OCTET_SIZE);
|
||||
@ -10394,6 +10414,7 @@ let ICCRecordHelper = {
|
||||
|
||||
ICCIOHelper.loadLinearFixedEF({fileId: fileId,
|
||||
recordNumber: recordNumber,
|
||||
recordSize: this._anrRecordSize,
|
||||
callback: callback.bind(this),
|
||||
onerror: onerror});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user