Searched refs:dataSize (Results 1 - 25 of 115) sorted by relevance

12345

/haiku/src/apps/cortex/AddOnHost/
H A DAddOnHostApp.cpp79 ssize_t dataSize; local
80 err = message->FindData("info", B_RAW_TYPE, &data, &dataSize);
87 if (dataSize != sizeof(info)) {
91 if (dataSize > ssize_t(sizeof(info)))
92 dataSize = sizeof(info);
94 memcpy(reinterpret_cast<void *>(&info), data, dataSize); local
125 ssize_t dataSize; local
126 err = message->FindData("info", B_RAW_TYPE, &data, &dataSize);
133 if (dataSize != sizeof(info)) {
137 if(dataSize > ssize_
140 memcpy(reinterpret_cast<void *>(&info), data, dataSize); local
[all...]
/haiku/src/kits/debugger/elf/
H A DCoreFile.cpp70 uint64 dataBase, uint64 dataSize, int32 deviceId, int64 nodeId,
82 fDataSize(dataSize),
351 uint32 dataSize = Get(header->n_descsz); local
374 size_t alignedDataSize = (dataSize + 3) / 4 * 4;
381 _ReadNote<ElfClass>(name, type, notes, dataSize);
394 uint32 dataSize)
405 return _ReadTeamNote<ElfClass>(data, dataSize);
407 return _ReadAreasNote<ElfClass>(data, dataSize);
409 return _ReadImagesNote<ElfClass>(data, dataSize);
411 return _ReadSymbolsNote<ElfClass>(data, dataSize);
68 CoreFileImageInfo(int32 id, int32 type, uint64 initRoutine, uint64 termRoutine, uint64 textBase, uint64 textSize, int64 textDelta, uint64 dataBase, uint64 dataSize, int32 deviceId, int64 nodeId, uint64 symbolTable, uint64 symbolHash, uint64 stringTable, CoreFileAreaInfo* textArea, CoreFileAreaInfo* dataArea, const BString& name) argument
393 _ReadNote(const char* name, uint32 type, const void* data, uint32 dataSize) argument
425 _ReadTeamNote(const void* data, uint32 dataSize) argument
469 _ReadAreasNote(const void* data, uint32 dataSize) argument
549 _ReadImagesNote(const void* data, uint32 dataSize) argument
592 uint64 dataSize = Get(entry.ni_data_size); local
633 _ReadSymbolsNote(const void* data, uint32 dataSize) argument
691 _ReadThreadsNote(const void* data, uint32 dataSize) argument
822 _ReadValue(const void*& data, uint32& dataSize) argument
832 _ReadEntry(const void*& data, uint32& dataSize, Entry& entry, size_t entrySize) argument
841 _Advance(const void*& data, uint32& dataSize, size_t by) argument
[all...]
H A DCoreFile.h89 uint64 dataBase, uint64 dataSize,
218 const void* data, uint32 dataSize);
221 uint32 dataSize);
224 uint32 dataSize);
227 uint32 dataSize);
230 uint32 dataSize);
233 uint32 dataSize);
241 Type _ReadValue(const void*& data, uint32& dataSize);
243 void _ReadEntry(const void*& data, uint32& dataSize,
245 void _Advance(const void*& data, uint32& dataSize,
[all...]
/haiku/src/kits/debugger/model/
H A DImageInfo.cpp37 target_addr_t dataBase, target_size_t dataSize)
46 fDataSize(dataSize)
54 target_addr_t dataBase, target_size_t dataSize)
63 fDataSize = dataSize;
35 ImageInfo(team_id team, image_id image, const BString& name, image_type type, target_addr_t textBase, target_size_t textSize, target_addr_t dataBase, target_size_t dataSize) argument
52 SetTo(team_id team, image_id image, const BString& name, image_type type, target_addr_t textBase, target_size_t textSize, target_addr_t dataBase, target_size_t dataSize) argument
/haiku/src/add-ons/mail_daemon/inbound_filters/spam_filter/
H A DSpamFilter.h31 status_t _GetSpamRatio(const char* data, off_t dataSize,
33 status_t _TrainServer(const char* data, off_t dataSize,
H A DSpamFilter.cpp108 off_t dataSize; local
109 file.GetSize(&dataSize);
110 char* stringBuffer = new char[dataSize + 1];
111 file.Read(stringBuffer, dataSize);
112 stringBuffer[dataSize] = 0; // Add an end of string NUL, just in case.
115 if (_GetSpamRatio(stringBuffer, dataSize, spamRatio) != B_OK)
122 _TrainServer(stringBuffer, dataSize, spamRatio);
228 SpamFilter::_GetSpamRatio(const char* stringBuffer, off_t dataSize, argument
240 stringBuffer, dataSize + 1, false /* fixed size */);
260 SpamFilter::_TrainServer(const char* stringBuffer, off_t dataSize, argument
[all...]
/haiku/src/add-ons/kernel/busses/scsi/ahci/
H A Dutil.h19 status_t sg_memcpy(const physical_entry *sgTable, int sgCount, const void *data, size_t dataSize);
H A Dutil.cpp94 size_t dataSize)
97 for (i = 0; i < sgCount && dataSize > 0; i++) {
98 size_t size = min_c(dataSize, sgTable[i].size);
106 dataSize -= size;
108 if (dataSize != 0)
93 sg_memcpy(const physical_entry *sgTable, int sgCount, const void *data, size_t dataSize) argument
H A Dahci_port.h67 // uint8 * SetCommandFis(volatile command_list_entry *cmd, volatile fis *fis, const void *data, size_t dataSize);
68 status_t FillPrdTable(volatile prd *prdTable, int *prdCount, int prdMax, const void *data, size_t dataSize);
69 status_t FillPrdTable(volatile prd *prdTable, int *prdCount, int prdMax, const physical_entry *sgTable, int sgCount, size_t dataSize);
/haiku/src/kits/network/libnetapi/
H A DNetBuffer.cpp205 ssize_t dataSize = data.FlattenedSize(); local
207 if (dataSize < 0)
208 return dataSize;
210 if (dataSize == 0)
215 if (dataSize > STACK_BUFFER_SIZE) {
216 char* flattenedData = new (std::nothrow) char[dataSize];
220 if (data.Flatten(flattenedData, dataSize) == B_OK)
221 result = AppendData((const void*)&flattenedData, dataSize);
225 if (data.Flatten(stackFlattenedData, dataSize) == B_OK)
226 result = AppendData((const void*)&stackFlattenedData, dataSize);
367 int32 dataSize = *(int32*)bufferPtr; local
[all...]
/haiku/src/kits/storage/mime/
H A Ddatabase_support.cpp160 \c dataSize. The array is allocated with \c new[], and it's your
165 int32 *dataSize)
167 if (icon == NULL || data == NULL || dataSize == 0
203 *dataSize = icon8->BitsLength();
207 *dataSize = icon->BitsLength();
213 *data = new(std::nothrow) char[*dataSize];
220 memcpy(*data, srcData, *dataSize);
164 get_icon_data(const BBitmap *icon, icon_size which, void **data, int32 *dataSize) argument
/haiku/src/add-ons/print/drivers/pcl6/
H A DPCL6.cpp192 int dataSize = outSize; local
195 if (_SupportsDeltaRowCompression() && deltaRowSize < dataSize) {
197 dataSize = deltaRowSize;
204 if (rleSize < dataSize) {
206 dataSize = rleSize;
216 _RasterGraphics(buffer, outSize, dataSize, rowSize, height,
231 fprintf(stderr, "Data Size %d %2.2f\n", (int)dataSize,
232 100.0 * dataSize / outSize);
322 PCL6Driver::_RasterGraphics(const uchar* buffer, int bufferSize, int dataSize, argument
326 fWriter->EmbeddedDataPrefix32(dataSize);
[all...]
/haiku/src/apps/diskprobe/
H A DFindWindow.cpp279 size_t dataSize; local
280 if (_GetDataFromHex(Text() + start, end - start, &data, &dataSize)
284 clip->AddData(B_FILE_MIME_TYPE, B_MIME_TYPE, data, dataSize);
286 if (is_valid_utf8(data, dataSize))
287 clip->AddData("text/plain", B_MIME_TYPE, data, dataSize);
330 ssize_t dataSize; local
332 &dataSize) == B_OK) {
336 if (_GetHexFromData(data, dataSize, &hex, &hexSize) < B_OK)
342 Insert((char*)data, dataSize);
378 size_t dataSize
432 size_t dataSize; local
450 ssize_t dataSize; local
474 size_t dataSize; local
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequest.cpp45 RequestBuffer::Create(uint32 dataSize) argument
47 void* buffer = malloc(sizeof(RequestBuffer) + dataSize);
/haiku/src/system/kernel/messaging/
H A DMessagingService.h26 static bool CheckCommandSize(int32 dataSize);
37 void *AllocateCommand(uint32 commandWhat, int32 dataSize, bool &wasEmpty);
/haiku/headers/private/debugger/model/
H A DImageInfo.h23 target_size_t dataSize);
30 target_size_t dataSize);
/haiku/src/apps/haikudepot/ui_generic/
H A DSharedBitmap.h43 size_t dataSize) const;
49 size_t dataSize, int32 size) const;
H A DSharedBitmap.cpp173 size_t dataSize;
175 &dataSize);
177 return _LoadIconFromBuffer(data, dataSize, size);
179 data = resources.LoadResource(B_MESSAGE_TYPE, fResourceID, &dataSize);
181 return _LoadBitmapFromBuffer(data, dataSize);
267 SharedBitmap::_LoadIconFromBuffer(const void* data, size_t dataSize, argument
275 reinterpret_cast<const uint8*>(data), dataSize, bitmap);
/haiku/src/servers/app/font/
H A DFontCacheEntry.h44 GlyphCache(uint32 glyphIndex, uint32 dataSize, glyph_data_type dataType, argument
50 data((uint8*)malloc(dataSize)),
51 data_size(dataSize),
/haiku/src/kits/interface/
H A DViewPort.cpp190 float dataSize)
195 if (viewPortSize < dataSize) {
196 scrollBar->SetRange(0, dataSize - viewPortSize);
197 scrollBar->SetProportion(viewPortSize / dataSize);
189 _UpdateScrollBar(BScrollBar* scrollBar, float viewPortSize, float dataSize) argument
/haiku/headers/private/kernel/
H A Ddebug_hex_dump.h34 size_t dataSize);
/haiku/headers/private/storage/mime/
H A Ddatabase_support.h82 int32* dataSize);
/haiku/src/system/boot/loader/net/
H A DEthernet.cpp140 size_t dataSize = buffer->TotalSize();
141 if (dataSize > ETHER_MAX_TRANSFER_UNIT)
156 if (dataSize < ETHER_MIN_TRANSFER_UNIT) {
157 size_t paddingSize = ETHER_MIN_TRANSFER_UNIT - dataSize;
/haiku/src/system/kernel/debug/
H A Ddebug_hex_dump.cpp35 size_t dataSize)
38 fDataSize(dataSize)
34 HexDumpBufferDataProvider(const void* data, size_t dataSize) argument
/haiku/src/servers/midi/
H A DDeviceWatcher.cpp68 size_t dataSize; local
71 B_VECTOR_ICON_TYPE, "endpoint_vector_icon", &dataSize);
73 if (data != NULL && dataSize > 0)
74 fVectorIconData = new(std::nothrow) uint8[dataSize];
79 memcpy(fVectorIconData, data, dataSize);
80 fVectorIconDataSize = dataSize;

Completed in 185 milliseconds

12345