/haiku/src/apps/mail/ |
H A D | KUndoBuffer.cpp | 7 KUndoItem::KUndoItem(const char* redo_text, int32 length, int32 offset, argument 11 Length = length; 16 RedoText = (char*)malloc(length); 19 memcpy(RedoText, redo_text, length); 41 KUndoItem::Merge(const char* text, int32 length) argument 43 RedoText = (char*)realloc(RedoText, Length + length); 44 memcpy(&RedoText[Length], text, length); 45 Length += length; 120 KUndoBuffer::NewUndo(const char* text, int32 length, int32 offset, argument 123 KUndoItem* NewUndoItem = new KUndoItem(text, length, offse 138 AddUndo(const char* text, int32 length, int32 offset, undo_type history, int32 cursor_pos) argument 193 Undo(char** text, int32* length, int32* offset, undo_type* history, int32* cursor_pos) argument 216 Redo(char** text, int32* length, int32* offset, undo_type* history, int32* cursor_pos, bool* replaced) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/ |
H A D | e1000_manage.h | 43 u16 length, u16 offset, u8 *sum); 47 u8 *buffer, u16 length); 49 u8 e1000_calculate_checksum(u8 *buffer, u32 length); 50 s32 e1000_host_interface_command(struct e1000_hw *hw, u8 *buffer, u32 length); 51 s32 e1000_load_firmware(struct e1000_hw *hw, u8 *buffer, u32 length);
|
/haiku/src/kits/network/libnetservices/ |
H A D | HttpResult.cpp | 72 const char* length = Headers()["Content-Length"]; local 73 if (length == NULL) 84 * We can check length[0] directly because header values are trimmed by 86 if (length[0] != '-' && length[0] != '+') { 89 result = strtoull(length, &endptr, 10);
|
H A D | DataRequest.cpp | 44 ssize_t length; local 108 length = decode_base64(buffer.Get(), data.String(), data.Length()); 111 // prevents us from computing the exact length we should get, so allow 113 if (length > data.Length() * 3 / 4 114 || length < data.Length() * 3 / 4 - 3) { 119 length = data.Length(); 122 fResult.SetLength(length); 126 if (length > 0) { 129 status_t err = fOutput->WriteExactly(payload, length, &written);
|
/haiku/src/add-ons/kernel/network/ppp/modem/ |
H A D | ModemDevice.cpp | 49 modem_put_line(int32 handle, const char *string, int32 length) argument 52 if (length > 126) 56 return write(handle, line, length + 1); 61 modem_get_line(int32 handle, char *string, int32 length, const char *echo) argument 63 if (!string || length < 40) 68 while(position < length) { 127 int32 length = 0, position = 0; local 135 length = read(handle, buffer + position, MODEM_MTU - position); 137 if (length < 0 || !device->IsUp()) { 143 for (int32 index = 0; index < length; ) { 434 int32 length = packet->size; local 477 DataReceived(uint8 *buffer, uint32 length) argument [all...] |
/haiku/src/bin/network/telnetd/ |
H A D | utility.c | 226 int length; local 232 length = next-thisitem; 233 memmove(good, thisitem, length); 234 good += length; 513 printsub(char direction, unsigned char *pointer, int length) argument 523 if (length >= 3) { 526 i = pointer[length-2]; 527 j = pointer[length-1]; 546 length -= 2; 548 if (length < [all...] |
/haiku/src/add-ons/media/media-add-ons/radeon/ |
H A D | I2CPort.cpp | 100 bool CI2CPort::Write(int address, const char * buffer, int length) argument 102 if (Send(address, buffer, length, true, true) == length) 107 bool CI2CPort::Read(int address, char * buffer, int length) argument 109 if (Receive(address, buffer, length, true, true) == length) 114 bool CI2CPort::Write(int address, const char * buffer, int length, char * result, int reslen) argument 116 if (Send(address, buffer, length, true, false) == length) 145 int CI2CPort::Send(int address, const char * buffer, int length, boo argument 190 Receive(int address, char * buffer, int length, bool start, bool stop) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | BlockAllocator.h | 32 fsblock_t& start, uint32& length); 35 uint32& length); 37 uint32 length);
|
/haiku/src/add-ons/kernel/file_systems/udf/ |
H A D | SparablePartition.cpp | 12 SparablePartition::SparablePartition(uint16 number, uint32 start, uint32 length, argument 17 fLength(length), 23 B_PRIu32 ",length = %" B_PRIu32 ", packetLength = %d\n", number, start, 24 length, packetLength));
|
H A D | Utils.h | 16 uint16 calculate_crc(uint8 *data, uint16 length); 20 long_address to_long_address(ino_t id, uint32 length = 0);
|
/haiku/src/system/runtime_loader/ |
H A D | pe.cpp | 46 pe_verify_header(void *header, size_t length) argument 48 if (length < sizeof(MzHeader)) 61 if (peOffset + sizeof(PeHeader) > length)
|
/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | VolumeSupport.h | 16 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; local 17 if (length <= bufferSize) { 20 buffer->d_reclen = length;
|
/haiku/src/kits/debugger/model/ |
H A D | TeamMemory.cpp | 39 size_t length = strnlen(buffer, bytesRead); 40 _string.Append(buffer, length); 43 if (length < (size_t)bytesRead)
|
/haiku/headers/private/shared/ |
H A D | JsonTextWriter.h | 37 off_t offset, size_t length); 41 off_t offset, size_t length); 46 off_t offset, size_t length);
|
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | debug.cpp | 37 syslog_write(const char* buffer, size_t length) argument 40 ring_buffer_write(sDebugSyslogBuffer, (const uint8*)buffer, length); 41 } else if (sBufferPosition + length < sizeof(sBuffer)) { 42 memcpy(sBuffer + sBufferPosition, buffer, length); 43 sBufferPosition += length; 52 int length = vsnprintf(buffer, sizeof(buffer), format, args); local 53 if (length == 0) 56 if (length >= (int)sizeof(buffer)) 57 length = sizeof(buffer) - 1; 69 sNewLine = buffer[length [all...] |
/haiku/src/tests/servers/input/view_input_device/ |
H A D | ViewInputDevice.cpp | 95 ssize_t length; local 102 length = port_buffer_size(_Port); 103 buffer = (char*)malloc(length); 106 err = read_port(_Port, &code, buffer, length); 107 if(err != length) { 109 _sPrintf("ViewInputDevice: failed to read full packet (read %u of %u)\n",err,length);
|
/haiku/src/kits/support/ |
H A D | ByteOrder.cpp | 13 swap_data(type_code type, void *_data, size_t length, swap_action action) argument 24 if (length == 0) 30 // ToDo: these are not safe. If the length is smaller than the size of 39 uint16 *end = (uint16 *)((addr_t)_data + length); 62 uint32 *end = (uint32 *)((addr_t)_data + length); 83 uint64 *end = (uint64 *)((addr_t)_data + length); 96 BMessenger *end = (BMessenger *)((addr_t)_data + length);
|
/haiku/src/add-ons/kernel/bus_managers/ps2/ |
H A D | packet_buffer.h | 38 length); 40 size_t length);
|
/haiku/src/add-ons/kernel/file_systems/cdda/ |
H A D | cdda.h | 33 status_t read_table_of_contents(int fd, scsi_toc_toc *toc, size_t length); 35 size_t length, off_t bufferOffset, void *buffer, size_t bufferSize);
|
/haiku/src/add-ons/kernel/drivers/bus/usb/ |
H A D | usb_raw.h | 82 size_t length; member in struct:__anon543::__anon547 130 size_t length; member in struct:__anon543::__anon553 140 size_t length; member in struct:__anon543::__anon554 147 size_t length; member in struct:__anon543::__anon555 156 size_t length; member in struct:__anon543::__anon556 165 uint16 length; member in struct:__anon543::__anon557 174 size_t length; member in struct:__anon543::__anon558 182 size_t length; member in struct:__anon543::__anon559
|
/haiku/src/kits/midi2/ |
H A D | MidiLocalConsumer.cpp | 103 BMidiLocalConsumer::Data(uchar* data, size_t length, bool atomic, bigtime_t time) argument 109 if (length == 3) 116 if (length == 3) 123 if (length == 3) 130 if (length == 3) 137 if (length == 2) 144 if (length == 2) 151 if (length == 3) 161 if (data[length - 1] == B_SYS_EX_END) { 162 SystemExclusive(data + 1, length 277 SystemExclusive( void* data, size_t length, bigtime_t time) argument [all...] |
/haiku/src/servers/app/drawing/interface/remote/ |
H A D | StreamingRingBuffer.h | 23 int32 Read(void *buffer, size_t length, 25 status_t Write(const void *buffer, size_t length);
|
/haiku/src/apps/serialconnect/ |
H A D | FileSender.h | 24 size_t length) = 0; 35 size_t length);
|
/haiku/src/tools/fs_shell/ |
H A D | uio.cpp | 59 fssh_size_t length = 0; local 60 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0) 78 fssh_size_t length = 0; 79 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0) 98 fssh_size_t length = 0; local 99 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0) 117 fssh_size_t length = 0; 118 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
|
/haiku/src/apps/haikudepot/textview/ |
H A D | TextDocument.h | 41 status_t Remove(int32 textOffset, int32 length); 43 status_t Replace(int32 textOffset, int32 length, 45 status_t Replace(int32 textOffset, int32 length, 48 status_t Replace(int32 textOffset, int32 length, 52 status_t Replace(int32 textOffset, int32 length, 78 BString Text(int32 textOffset, int32 length) const; 80 int32 length) const; 102 status_t _Remove(int32 textOffset, int32 length,
|