HomeSort by relevance Sort by last modified time
    Searched refs:dataHeader (Results 1 - 25 of 29) sorted by null

1 2

  /external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
MessageHeader.java 7 import org.chromium.mojo.bindings.Struct.DataHeader;
18 private static final DataHeader SIMPLE_MESSAGE_STRUCT_INFO =
19 new DataHeader(SIMPLE_MESSAGE_SIZE, SIMPLE_MESSAGE_NUM_FIELDS);
23 private static final DataHeader MESSAGE_WITH_REQUEST_ID_STRUCT_INFO =
24 new DataHeader(MESSAGE_WITH_REQUEST_ID_SIZE, MESSAGE_WITH_REQUEST_ID_NUM_FIELDS);
45 private final DataHeader mDataHeader;
225 * Validate that the given {@link DataHeader} can be the data header of a message header.
227 private static void validateDataHeader(DataHeader dataHeader) {
228 if (dataHeader.numFields < SIMPLE_MESSAGE_NUM_FIELDS)
    [all...]
Decoder.java 8 import org.chromium.mojo.bindings.Struct.DataHeader;
117 * Deserializes a {@link DataHeader} at the given offset.
119 public DataHeader readDataHeader() {
121 mValidator.claimMemory(mBaseOffset, mBaseOffset + DataHeader.HEADER_SIZE);
122 int size = readInt(DataHeader.SIZE_OFFSET);
123 int numFields = readInt(DataHeader.NUM_FIELDS_OFFSET);
134 mValidator.claimMemory(mBaseOffset + DataHeader.HEADER_SIZE, mBaseOffset + size);
135 DataHeader res = new DataHeader(size, numFields);
140 * Deserializes a {@link DataHeader} at the given offset and checks if it is correct for a
    [all...]
Encoder.java 7 import org.chromium.mojo.bindings.Struct.DataHeader;
140 public Encoder getEncoderAtDataOffset(DataHeader dataHeader) {
142 result.encode(dataHeader);
147 * Encode a {@link DataHeader} and claim the amount of memory required for the data section
150 public void encode(DataHeader s) {
152 encode(s.size, DataHeader.SIZE_OFFSET);
153 encode(s.numFields, DataHeader.NUM_FIELDS_OFFSET);
403 e.encode(v[i], DataHeader.HEADER_SIZE + BindingsHelper.SERIALIZED_HANDLE_SIZE * i,
420 e.encode(v[i], DataHeader.HEADER_SIZE + BindingsHelper.SERIALIZED_HANDLE_SIZE * i
    [all...]
  /external/chromium_org/third_party/icu/source/common/
udataswp.c 24 #include "ucmndata.h" /* DataHeader */
238 const DataHeader *pHeader;
251 pHeader=(const DataHeader *)inData;
252 if( (length>=0 && length<sizeof(DataHeader)) ||
253 pHeader->dataHeader.magic1!=0xda ||
254 pHeader->dataHeader.magic2!=0x27 ||
262 headerSize=ds->readUInt16(pHeader->dataHeader.headerSize);
265 if( headerSize<sizeof(DataHeader) ||
267 headerSize<(sizeof(pHeader->dataHeader)+infoSize) ||
277 DataHeader *outHeader
    [all...]
ucmndata.h 42 MappedData dataHeader;
44 } DataHeader;
47 DataHeader hdr;
71 * Get the header size from a const DataHeader *udh.
77 udata_getHeaderSize(const DataHeader *udh);
96 typedef const DataHeader *
udatamem.c 56 U_CFUNC const DataHeader *
59 const DataHeader *pdh = (const DataHeader *)p;
60 if(pdh==NULL || (pdh->dataHeader.magic1==0xda && pdh->dataHeader.magic2==0x27)) {
76 return (const DataHeader *)*((const void **)p+1);
78 return (const DataHeader *)((const double *)p+1);
ucmndata.c 34 udata_getHeaderSize(const DataHeader *udh) {
39 return udh->dataHeader.headerSize;
42 uint16_t x=udh->dataHeader.headerSize;
71 const DataHeader *pHeader;
217 static const DataHeader *
246 return (const DataHeader *)(base+entry->dataOffset);
269 static const DataHeader *pointerTOCLookupFn(const UDataMemory *pData,
322 } else if(!(udm->pHeader->dataHeader.magic1==0xda &&
323 udm->pHeader->dataHeader.magic2==0x27 &&
ucnvsel.cpp 262 UCNVSEL_INDEX_SIZE = 15, // bytes following the DataHeader
269 * The serialized form begins with a standard ICU DataHeader with a UDataInfo
301 DataHeader header;
303 header.dataHeader.headerSize = (uint16_t)((sizeof(header) + 15) & ~15);
304 header.dataHeader.magic1 = 0xda;
305 header.dataHeader.magic2 = 0x27;
316 header.dataHeader.headerSize +
321 indexes[UCNVSEL_INDEX_SIZE] = totalSize - header.dataHeader.headerSize;
327 int32_t length = header.dataHeader.headerSize;
482 const DataHeader *pHeader = (const DataHeader *)p
    [all...]
rbbidata.cpp 61 ((char *)(udm->pHeader) + udm->pHeader->dataHeader.headerSize);
udata.cpp     [all...]
  /external/icu/icu4c/source/common/
udataswp.c 24 #include "ucmndata.h" /* DataHeader */
287 const DataHeader *pHeader;
300 pHeader=(const DataHeader *)inData;
301 if( (length>=0 && length<sizeof(DataHeader)) ||
302 pHeader->dataHeader.magic1!=0xda ||
303 pHeader->dataHeader.magic2!=0x27 ||
311 headerSize=ds->readUInt16(pHeader->dataHeader.headerSize);
314 if( headerSize<sizeof(DataHeader) ||
316 headerSize<(sizeof(pHeader->dataHeader)+infoSize) ||
326 DataHeader *outHeader
    [all...]
ucmndata.h 42 MappedData dataHeader;
44 } DataHeader;
57 * Get the header size from a const DataHeader *udh.
63 udata_getHeaderSize(const DataHeader *udh);
82 typedef const DataHeader *
udatamem.c 56 U_CFUNC const DataHeader *
59 const DataHeader *pdh = (const DataHeader *)p;
60 if(pdh==NULL || (pdh->dataHeader.magic1==0xda && pdh->dataHeader.magic2==0x27)) {
76 return (const DataHeader *)*((const void **)p+1);
78 return (const DataHeader *)((const double *)p+1);
ucmndata.c 34 udata_getHeaderSize(const DataHeader *udh) {
39 return udh->dataHeader.headerSize;
42 uint16_t x=udh->dataHeader.headerSize;
71 const DataHeader *pHeader;
217 static const DataHeader *
246 return (const DataHeader *)(base+entry->dataOffset);
269 static const DataHeader *pointerTOCLookupFn(const UDataMemory *pData,
322 } else if(!(udm->pHeader->dataHeader.magic1==0xda &&
323 udm->pHeader->dataHeader.magic2==0x27 &&
ucnvsel.cpp 262 UCNVSEL_INDEX_SIZE = 15, // bytes following the DataHeader
269 * The serialized form begins with a standard ICU DataHeader with a UDataInfo
301 DataHeader header;
303 header.dataHeader.headerSize = (uint16_t)((sizeof(header) + 15) & ~15);
304 header.dataHeader.magic1 = 0xda;
305 header.dataHeader.magic2 = 0x27;
316 header.dataHeader.headerSize +
321 indexes[UCNVSEL_INDEX_SIZE] = totalSize - header.dataHeader.headerSize;
327 int32_t length = header.dataHeader.headerSize;
482 const DataHeader *pHeader = (const DataHeader *)p
    [all...]
rbbidata.cpp 61 ((char *)(udm->pHeader) + udm->pHeader->dataHeader.headerSize);
udata.cpp 624 extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT;
900 const DataHeader *pHeader, /* The data item to be checked. *
    [all...]
  /external/icu/icu4c/source/i18n/
collationdatawriter.cpp 164 DataHeader header;
165 header.dataHeader.magic1 = 0xda;
166 header.dataHeader.magic2 = 0x27;
183 header.dataHeader.headerSize = (uint16_t)headerSize;
collationdatareader.cpp 54 const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes);
55 if(!(header->dataHeader.magic1 == 0xda && header->dataHeader.magic2 == 0x27 &&
64 int32_t headerLength = header->dataHeader.headerSize;
  /external/chromium_org/third_party/skia/gm/rebaseline_server/static/
live-loader.js 157 var dataHeader = data[constants.KEY__ROOT__HEADER];
158 if (dataHeader[constants.KEY__HEADER__SCHEMA_VERSION] !=
161 + dataHeader[constants.KEY__HEADER__SCHEMA_VERSION]
164 } else if (dataHeader[constants.KEY__HEADER__IS_STILL_LOADING]) {
169 dataHeader[constants.KEY__HEADER__TIME_NEXT_UPDATE_AVAILABLE] -
170 dataHeader[constants.KEY__HEADER__TIME_UPDATED];
182 $scope.header = dataHeader;
206 if (dataHeader[constants.KEY__HEADER__IS_EDITABLE]) {
    [all...]
loader.js 143 var dataHeader = data[constants.KEY__ROOT__HEADER];
144 if (dataHeader[constants.KEY__HEADER__SCHEMA_VERSION] !=
147 + dataHeader[constants.KEY__HEADER__SCHEMA_VERSION]
150 } else if (dataHeader[constants.KEY__HEADER__IS_STILL_LOADING]) {
155 dataHeader[constants.KEY__HEADER__TIME_NEXT_UPDATE_AVAILABLE] -
156 dataHeader[constants.KEY__HEADER__TIME_UPDATED];
168 $scope.header = dataHeader;
192 if (dataHeader[constants.KEY__HEADER__IS_EDITABLE]) {
    [all...]
  /external/skia/gm/rebaseline_server/static/
loader.js 134 var dataHeader = data[constants.KEY__ROOT__HEADER];
135 if (dataHeader[constants.KEY__HEADER__SCHEMA_VERSION] !=
138 + dataHeader[constants.KEY__HEADER__SCHEMA_VERSION]
141 } else if (dataHeader[constants.KEY__HEADER__IS_STILL_LOADING]) {
146 dataHeader[constants.KEY__HEADER__TIME_NEXT_UPDATE_AVAILABLE] -
147 dataHeader[constants.KEY__HEADER__TIME_UPDATED];
159 $scope.header = dataHeader;
179 if (dataHeader[constants.KEY__HEADER__IS_EDITABLE]) {
    [all...]
  /external/chromium_org/third_party/icu/source/tools/toolutil/
package.cpp 115 const DataHeader *pHeader;
122 (length>=0 && length<(int32_t)sizeof(DataHeader))
128 pHeader=(const DataHeader *)data;
130 if( (length>=0 && length<(int32_t)sizeof(DataHeader)) ||
131 pHeader->dataHeader.magic1!=0xda ||
132 pHeader->dataHeader.magic2!=0x27 ||
140 headerLength=pHeader->dataHeader.headerSize;
143 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize);
147 if( headerLength<(int32_t)sizeof(DataHeader) ||
149 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) |
    [all...]
  /external/icu/icu4c/source/tools/toolutil/
package.cpp 115 const DataHeader *pHeader;
122 (length>=0 && length<(int32_t)sizeof(DataHeader))
128 pHeader=(const DataHeader *)data;
130 if( (length>=0 && length<(int32_t)sizeof(DataHeader)) ||
131 pHeader->dataHeader.magic1!=0xda ||
132 pHeader->dataHeader.magic2!=0x27 ||
140 headerLength=pHeader->dataHeader.headerSize;
143 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize);
147 if( headerLength<(int32_t)sizeof(DataHeader) ||
149 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) |
    [all...]
  /dalvik/tools/dmtracedump/
TraceDump.c 119 typedef struct DataHeader {
125 } DataHeader;
1069 int parseDataHeader(FILE *fp, DataHeader* pHeader)
1131 int readDataRecord(FILE *dataFp, DataHeader* dataHeader,
1137 bytesToRead = dataHeader->recordSize;
1138 if (dataHeader->version == 1) {
1176 DataHeader dataHeader;
1196 if (parseDataHeader(dataFp, &dataHeader) < 0
    [all...]

Completed in 347 milliseconds

1 2