Searched refs:size (Results 376 - 400 of 2735) sorted by relevance

<<11121314151617181920>>

/haiku/src/apps/pairs/
H A DPairs.cpp110 size_t size; local
112 if (mimeType.GetIcon(&data, &size) != B_OK) {
118 for (size_t i = 0; i < size; i++)
135 icon->size = size;
139 if (fIconMap.size() >= kMaxIconCount) {
145 if (fIconMap.size() < kMinIconCount) {
151 kMinIconCount, fIconMap.size());
/haiku/src/add-ons/translators/gif/
H A DLoadPalette.cpp29 size = size_in_bits = 0;
37 if (index >= 0 && index <= size) {
/haiku/headers/posix/
H A Dmalloc_debug.h28 void *heap_debug_malloc_with_guard_page(size_t size);
30 status_t heap_debug_get_allocation_info(void *address, size_t *size,
/haiku/src/kits/debugger/jobs/
H A DWriteMemoryJob.cpp14 target_size_t size)
21 fSize(size)
12 WriteMemoryJob(Team* team, TeamMemory* teamMemory, target_addr_t address, void* data, target_size_t size) argument
/haiku/headers/private/debugger/model/
H A DSymbolInfo.h17 target_size_t size, uint32 type,
21 void SetTo(target_addr_t address, target_size_t size,
H A DTeamMemory.h27 size_t size) = 0;
31 void* buffer, size_t size) = 0;
/haiku/src/apps/launchbox/
H A DApp.cpp73 BSize size; local
74 if (settings.FindSize("name panel size", &size) == B_OK)
75 fNamePanelSize = size;
128 App::SetNamePanelSize(const BSize& size) argument
131 fNamePanelSize = size;
148 BSize size; local
150 size = fNamePanelSize;
153 return size;
176 settings.AddSize("name panel size", fNamePanelSiz
[all...]
/haiku/src/apps/mediaplayer/interface/
H A DSymbolButton.cpp90 BSize size; local
91 size.width = ceilf(fSymbol->Bounds().Width() * scale);
92 size.height = ceilf(fSymbol->Bounds().Height() * scale);
93 return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
100 BSize size(MinSize());
102 size.width = ceilf(size.width * 1.5f);
103 return BLayoutUtils::ComposeSize(ExplicitMaxSize(), size);
/haiku/src/system/kernel/vm/
H A DVMAnonymousNoSwapCache.cpp62 VMAnonymousNoSwapCache::Commit(off_t size, int priority) argument
66 if (fCanOvercommit && size > committed_size) {
73 if (size > precommitted)
74 size = precommitted;
79 if (size > committed_size) {
81 if (vm_try_reserve_memory(size - committed_size, priority, 1000000)
87 vm_unreserve_memory(committed_size - size);
90 committed_size = size;
176 // take over the source' committed size
H A DVMKernelAddressSpace.h20 size_t size);
35 virtual status_t InsertArea(VMArea* area, size_t size,
50 virtual status_t ReserveAddressRange(size_t size,
56 size_t size, uint32 allocationFlags);
72 inline void _FreeListInsertRange(Range* range, size_t size);
73 inline void _FreeListRemoveRange(Range* range, size_t size);
81 size_t size, bool allowReservedRange,
83 Range* _FindFreeRange(addr_t start, size_t size,
/haiku/src/add-ons/kernel/file_systems/packagefs/util/
H A DClassCache.h16 CLASS::operator new(size_t size) \
18 if (size != sizeof(CLASS)) \
19 panic("unexpected size passed to operator new!"); \
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DFile.h18 virtual status_t ReadAt(off_t offset, void *buffer, size_t size,
20 virtual status_t WriteAt(off_t offset, const void *buffer, size_t size,
/haiku/src/add-ons/input_server/devices/wacom/
H A DDeviceReader.cpp111 DeviceReader::ReadData(uint8* data, const size_t size) const
124 size_t bytesToCopy = min_c(size, read - (size_t)kHeaderSize);
126 requested, read, size, bytesToCopy));
129 if (size > bytesToCopy)
130 memset(data + bytesToCopy, 0, size - bytesToCopy);
133 // if (read != (ssize_t)size)
134 // PRINT(("user wanted: %lu, returning: %ld\n", size, read));
135 read = size;
139 memset(data, 0, size);
143 requested, read, size));
[all...]
/haiku/src/system/boot/loader/
H A Dheap.cpp36 the requested size is split (or taken as a whole if it can't be
39 The free list is ordered by size, starting with the smallest
43 size 0 that can't be allocated.
56 // allocations of this size or larger are allocated via
97 void SetTo(size_t size);
111 FreeChunkKey(size_t size) argument
113 fSize(size),
176 void SetTo(void* address, size_t size) argument
179 fSize = size;
182 status_t Allocate(size_t size) argument
254 align(size_t size) argument
261 malloc_large(size_t size) argument
295 SetTo(size_t size) argument
453 malloc(size_t size) argument
552 calloc(size_t numElements, size_t size) argument
[all...]
/haiku/src/kits/package/
H A DFetchUtils.h31 size_t size);
35 size_t size);
/haiku/src/system/boot/platform/efi/arch/x86_64/
H A Darch_mmu.cpp105 uint64_t size = end - base; local
107 insert_physical_memory_range(base, size);
111 insert_physical_allocated_range(base, size);
163 uint64 size = gKernelArgs.physical_memory_range[i].size; local
165 start, start + size, size);
171 uint64 size = gKernelArgs.physical_allocated_range[i].size; local
173 start, start + size, siz
179 uint64 size = gKernelArgs.virtual_allocated_range[i].size; local
[all...]
/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dvnidpool.c21 status_t vnidpool_alloc(struct vnidpool **pool, size_t size) argument
24 if (size < 2)
28 size = (size + sizeof(BMT) - 1) / sizeof(BMT);
29 size *= sizeof(BMT);
30 p = malloc(sizeof(struct vnidpool) + size / sizeof(BMT));
36 p->bmsize = size;
37 memset(p->bitmap, 0, size / sizeof(BMT));
38 fprintf(stderr, "vnidpool_alloc: pool @ %p, bitmap @ %p, size %ld\n", p, p->bitmap, p->bmsize);
/haiku/src/apps/haikudepot/util/
H A DDataIOUtils.cpp50 ConstraintedDataIO::Read(void* buffer, size_t size) argument
52 if (size > fLimit)
53 size = fLimit;
55 ssize_t actualRead = fDelegate->Read(buffer, size);
65 ConstraintedDataIO::Write(const void* buffer, size_t size) argument
165 Base64DecodingDataIO::Read(void* buffer, size_t size) argument
170 while (result == B_OK && readSize < size) {
182 Base64DecodingDataIO::Write(const void* buffer, size_t size) argument
/haiku/src/kits/debugger/dwarf/
H A DAbbreviationTable.h18 off_t size; member in struct:AbbreviationTableEntry
21 AbbreviationTableEntry(uint32 code, off_t offset, off_t size) argument
25 size(size)
36 AbbreviationEntry(uint32 code, const void* data, off_t size) argument
38 SetTo(code, data, size);
41 void SetTo(uint32 code, const void* data, off_t size) argument
44 fAttributesReader.SetTo(data, size, 4, false);
45 // address size and endianness don't matter here
/haiku/src/system/boot/platform/openfirmware/arch/ppc/
H A Dmmu.cpp59 insert_virtual_range_to_keep(void *start, uint32 size) argument
63 MAX_VIRTUAL_RANGES_TO_KEEP, (addr_t)start, size);
68 remove_virtual_range_to_keep(void *start, uint32 size) argument
72 MAX_VIRTUAL_RANGES_TO_KEEP, (addr_t)start, size);
88 // #address-cells and #size-cells matches the number of 32-bit 'cells'
89 // representing the length of the base address and size fields
94 dprintf("finding base/size length counts failed, assume 32-bit.\n");
118 if (regions[i].size <= 0) {
123 "size = %" B_PRIu32 "\n", i, regions[i].base, regions[i].size);
171 is_virtual_allocated(void *address, size_t size) argument
181 is_physical_allocated(void *address, size_t size) argument
191 is_physical_memory(void *address, size_t size) argument
275 map_range(void *virtualAddress, void *physicalAddress, size_t size, uint8 mode) argument
422 find_physical_memory_range(size_t size) argument
433 find_free_physical_range(size_t size) argument
457 find_free_virtual_range(void *base, size_t size) argument
485 arch_mmu_allocate(void *_virtualAddress, size_t size, uint8 _protection, bool exactAddress) argument
542 arch_mmu_free(void *address, size_t size) argument
[all...]
/haiku/src/apps/diskprobe/
H A DDataEditor.cpp52 virtual void Apply(off_t offset, uint8 *buffer, size_t size) = 0;
53 virtual void Revert(off_t offset, uint8 *buffer, size_t size) = 0;
60 ReplaceChange(off_t offset, const uint8 *data, size_t size);
63 virtual void Apply(off_t offset, uint8 *buffer, size_t size);
64 virtual void Revert(off_t offset, uint8 *buffer, size_t size);
70 off_t &offset, size_t &dataOffset, size_t &size);
87 dump_block(const uint8 *buffer, int size, const char *prefix) argument
89 for (int i = 0; i < size;) {
97 if (i >= size)
105 if (i < size) {
122 CompareCaseInsensitive(const uint8 *a, const uint8 *b, size_t size) argument
193 ReplaceChange(off_t offset, const uint8 *data, size_t size) argument
221 Normalize(off_t bufferOffset, size_t bufferSize, off_t &offset, size_t &dataOffset, size_t &size) argument
247 size_t size = fSize; local
276 size_t size = fSize; local
323 size_t size = fSize + change->fSize; local
698 off_t offset, size; local
699 change->GetRange(FileSize(), offset, size); local
728 size_t size = fRealViewSize; local
842 SetFileSize(off_t size) argument
891 SetViewSize(size_t size, bool sendNotices) argument
931 SetViewSize(size_t size) argument
938 SetBlockSize(size_t size) argument
1159 size_t size = dataSize - 1; local
1211 off_t offset, size; local
1212 change->GetRange(FileSize(), offset, size); local
[all...]
/haiku/src/kits/debug/
H A Ddebug_support.cpp111 void *buffer, size_t size)
116 if (size == 0)
118 if (size > B_MAX_READ_WRITE_MEMORY_SIZE)
119 size = B_MAX_READ_WRITE_MEMORY_SIZE;
125 message.size = size;
138 memcpy(buffer, reply.data, reply.size);
139 return reply.size;
145 size_t size)
153 if (size
110 debug_read_memory_partial(debug_context *context, const void *address, void *buffer, size_t size) argument
144 debug_read_memory(debug_context *context, const void *_address, void *_buffer, size_t size) argument
178 debug_read_string(debug_context *context, const void *_address, char *buffer, size_t size) argument
222 debug_write_memory_partial(debug_context *context, const void *address, void *buffer, size_t size) argument
255 debug_write_memory(debug_context *context, const void *_address, void *_buffer, size_t size) argument
[all...]
/haiku/src/tests/kits/midi/synth_file_reader/
H A DSynthFileReader.cpp65 bool SSynthFileReader::Read(void* data, uint32 size) { argument
66 return 1 == fread(data, size, 1, fFile);
73 bool SSynthFileReader::Read(uint64 &n, uint32 size) { argument
75 ASSERT(size <= sizeof(number));
76 if (Read((void*)number, size)) {
78 for (unsigned int i = 0; i < size; i ++) {
138 bool SSynthFileReader::ReadInstHeader(uint16& inst, uint16& snd, uint16& snds, BString& name, uint32& size) { argument
141 if (Skip(2) && Read(inst) && Read(len) && Read(name, len) && Read(size) && Read(snd) && Skip(10) && Read(snds)) {
142 size -= 14;
149 bool SSynthFileReader::ReadSoundInRange(uint8& start, uint8& end, uint16& snd, uint32& size) { argument
155 ReadSoundHeader(uint16& inst, BString& name, uint32& size) argument
176 uint32 size; local
197 uint32 size; local
269 uint32 size; local
364 uint32 size; local
392 Play(uint16 rate, uint32 offset, uint32 size) argument
[all...]
/haiku/src/kits/tracker/infowindow/
H A DAttributesView.cpp85 ssize_t size = node->ReadAttr(name, info.type, 0, buffer, local
87 if (size > 0)
88 representation.SetTo(buffer, size);
93 if (info.size == sizeof(bool)) {
100 info.size / sizeof(bool));
106 if (info.size == sizeof(int16)) {
112 info.size / sizeof(int16));
118 if (info.size == sizeof(int32)) {
124 info.size / sizeof(int32));
130 if (info.size
[all...]
/haiku/src/libs/icon/flat_icon/
H A DLittleEndianBuffer.cpp36 LittleEndianBuffer::LittleEndianBuffer(size_t size) argument
37 : fBuffer((uint8*)malloc(size)),
39 fBufferEnd(fBuffer + size),
40 fSize(size),
46 LittleEndianBuffer::LittleEndianBuffer(uint8* buffer, size_t size) argument
49 fBufferEnd(fBuffer + size),
50 fSize(size),
156 // figure out needed size and suitable new size
281 LittleEndianBuffer::_SetSize(size_t size) argument
[all...]

Completed in 140 milliseconds

<<11121314151617181920>>