Searched refs:header (Results 1 - 25 of 235) sorted by relevance

12345678910

/haiku/src/add-ons/media/media-add-ons/dvb/
H A Dmpeg_ts_packet.h41 uint8 header[4]; member in class:mpeg_ts_packet
48 return header[0];
53 return header[1] & 0x80;
58 return header[1] & 0x40;
63 return ((header[1] << 8) | header[2]) & 0x1fff;
68 return (header[3] >> 4) & 0x3;
73 return header[3] & 0x0f;
H A DMediaFormat.h34 status_t GetHeaderFormat(media_format *out_format, const void *header, size_t size, int stream_id);
/haiku/src/system/runtime_loader/
H A Dpe.h20 status_t pe_verify_header(void *header, size_t length);
H A Dpe.cpp44 /*! Read and verify the PE header */
46 pe_verify_header(void *header, size_t length) argument
51 // Verify MZ header, pull PE header offset
53 if (parse_mz_header((MzHeader*)header, &peOffset) != B_OK)
64 // Find the PE header based on MZ provided offset
65 uint8* pePtr = (uint8*)header;
/haiku/src/tools/vmdkimage/
H A Dvmdkimage.cpp39 printf(" -h, --headersize size of the vmdk header to write\n");
44 printf(" -H, --header-only write only the header\n");
59 SparseExtentHeader header; local
60 if (read(image, &header, 512) != 512) {
61 fprintf(stderr, "Error: couldn't read header: %s\n", strerror(errno));
65 if (header.magicNumber != VMDK_SPARSE_MAGICNUMBER) {
66 fprintf(stderr, "Error: invalid header magic.\n");
71 printf(" version: %d\n", (int)header.version);
72 printf(" flags: %d\n", (int)header
246 SparseExtentHeader header; local
[all...]
/haiku/src/add-ons/translators/gif/
H A DGIFTranslator.cpp10 // under the BSD license, with the stipulations that this complete header must
123 unsigned char header[7]; local
125 if (source->Read(header, 6) != 6)
128 header[6] = 0x00;
130 if (strcmp((char*)header, "GIF87a") != 0
131 && strcmp((char*)header, "GIF89a") != 0) {
133 int32 magic = (header[0] << 24) + (header[1] << 16) + (header[2] << 8)
134 + header[
158 TranslatorBitmap header; local
[all...]
/haiku/src/system/boot/loader/net/
H A DARP.cpp69 arp_header *header = (arp_header*)data;
71 if (header->hardware_format != htons(ARPHRD_ETHER)
72 || header->protocol_format != htons(ETHERTYPE_IP)
73 || header->hardware_length != sizeof(mac_addr_t)
74 || header->protocol_length != sizeof(ip_addr_t)
76 || header->sender_mac == kNoMACAddress
77 || header->sender_mac == kBroadcastMACAddress
79 || (header->opcode != htons(ARPOP_REQUEST)
80 && header->opcode != htons(ARPOP_REPLY))) {
85 if (header
168 arp_header header; local
[all...]
H A DIP.cpp90 // check header
91 const ip_header *header = (const ip_header*)data; local
92 // header length OK?
93 int headerLength = header->header_length * 4;
96 || header->version != IP_PROTOCOL_VERSION_4
98 || ntohs(header->total_length) > size
100 || (header->destination != htonl(INADDR_BROADCAST)
102 || header->destination != htonl(fEthernet->IPAddress())))
104 || _Checksum(*header) != 0) {
112 if (service->IPProtocol() == header
201 _Checksum(const ip_header &header) argument
[all...]
H A DEthernet.cpp144 // prepend ethernet header
145 ether_header header;
146 ChainBuffer headerBuffer(&header, sizeof(header), buffer);
147 header.source = fInterface->MACAddress();
148 header.destination = destination;
149 header.type = htons(protocol);
195 ether_header *header = (ether_header*)fReceiveBuffer; local
196 if (header->destination != kBroadcastMACAddress
197 && header
[all...]
/haiku/src/add-ons/translators/rtf/
H A Dconvert.h13 extern status_t convert_to_stxt(RTF::Header &header, BDataIO &target);
14 extern status_t convert_to_plain_text(RTF::Header &header, BPositionIO &target);
/haiku/src/tools/translation/bitsinfo/
H A Dbitsinfo.cpp63 TranslatorBitmap header; local
64 memset(&header, 0, sizeof(TranslatorBitmap));
66 // read in the rest of the header
68 if (file.Read(reinterpret_cast<uint8 *> (&header), size) != size) {
70 "header.\n"));
78 if (swap_data(B_UINT32_TYPE, &header, sizeof(TranslatorBitmap),
84 printf(B_TRANSLATE("\nBe bitmap (\"bits\") header for: %s\n\n"),
89 if (header.magic == kbitsmagic)
91 header.magic);
94 "0x%.8lx)\n"), header
[all...]
/haiku/src/system/boot/loader/file_systems/hfs_plus/
H A Dhfs_plus.cpp25 hfs_volume_header header;
26 if (read_pos(fDevice, 1024, &header, sizeof(header)) < B_OK)
/haiku/src/kits/debug/
H A DDebugEventStream.cpp150 header's offset relative to the beginning of the stream shall be stored.
159 // get the next header
169 system_profiler_event_header header local
174 // skip the header in the buffer
179 if (header.size > 0) {
180 error = _GetData(header.size);
185 *_event = header.event;
186 *_cpu = header.cpu;
192 fBufferSize -= header.size;
193 fBufferPosition += header
211 const debug_event_stream_header& header local
315 debug_event_stream_header header; local
[all...]
/haiku/src/preferences/mail/
H A DDNSQuery.cpp312 dns_header header; local
313 _SetMXHeader(&header);
314 _AppendQueryHeader(buffer, &header);
399 DNSQuery::_SetMXHeader(dns_header* header) argument
401 header->id = _GetUniqueID();
402 header->qr = 0; //This is a query
403 header->opcode = 0; //This is a standard query
404 header->aa = 0; //Not Authoritative
405 header->tc = 0; //This message is not truncated
406 header
418 _AppendQueryHeader(BRawNetBuffer& buffer, const dns_header* header) argument
439 _ReadQueryHeader(BRawNetBuffer& buffer, dns_header* header) argument
[all...]
/haiku/src/add-ons/kernel/network/stack/
H A Dancillary_data.cpp30 ancillary_data_header header; member in struct:ancillary_data
56 data->destructor(&data->header, data->Data());
66 \param header Description of the data.
75 const ancillary_data_header* header, const void* data,
80 if (header == NULL)
83 if (header->len > MAX_ANCILLARY_DATA_SIZE)
87 void *dataBuffer = malloc(_ALIGN(sizeof(ancillary_data)) + header->len);
93 ancillaryData->header = *header;
99 memcpy(ancillaryData->Data(), data, header
74 add_ancillary_data(ancillary_data_container* container, const ancillary_data_header* header, const void* data, void (*destructor)(const ancillary_data_header*, void*), void** _allocatedData) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A DIndirectItem.h37 IndirectItem(LeafNode *node, ItemHeader *header) argument
38 : Item(node, header) {}
/haiku/src/servers/syslog_daemon/
H A Dsyslog_output.cpp120 char header[128]; local
128 pos = strftime(header, sizeof(header), "%Y-%m-%d %H:%M:%S ", &when);
135 pos += snprintf(header + pos, sizeof(header) - pos, "%s",
142 pos += snprintf(header + pos, sizeof(header) - pos, " '%s'",
147 pos += snprintf(header + pos, sizeof(header) - pos, "[%" B_PRId32 "]",
151 headerLength = pos + strlcpy(header
[all...]
/haiku/src/add-ons/kernel/network/ppp/pppoe/
H A DDiscoveryPacket.cpp29 pppoe_header &header = bufferheader.Data(); local
31 SetCode(header.code);
33 uint16 length = ntohs(header.length);
49 tag = (pppoe_tag*) (header.data + position);
137 pppoe_header *header ; local
138 status_t status = gBufferModule->append_size(packet, 1492, (void **)&header);
144 header->version = PPPoE_VERSION;
145 header->type = PPPoE_TYPE;
146 header->code = Code();
147 header
[all...]
/haiku/src/add-ons/translators/stxt/
H A DSTXTTranslator.cpp126 \param header the STXT stream header read in by Identify() or Translate()
130 \param ptxtheader if this is not NULL, the TEXT header from
134 identify_stxt_header(const TranslatorStyledTextStreamHeader &header, argument
143 // Check the TEXT header
153 if (txtheader.header.magic != 'TEXT'
154 || txtheader.header.header_size != sizeof(TranslatorStyledTextTextHeader)
160 pos = header.header.header_size + txtheader.header
720 TranslatorStyledTextStreamHeader header; local
760 TranslatorStyledTextStreamHeader header; local
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/gpt/
H A DHeader.cpp59 // Read and check the partition table header
69 dprintf("gpt: alternate header not in last block (%" B_PRIu64 " vs. %"
74 // Read backup header, too
87 // Recreate primary header from the backup
94 // Recreate backup header from primary
146 // Initialize to an empty header
147 memcpy(fHeader.header, EFI_PARTITION_HEADER, sizeof(fHeader.header));
219 // Update header, too -- the entries CRC changed
257 // First write the header, s
309 _UpdateCRC(efi_table_header& header) argument
332 _IsHeaderValid(efi_table_header& header, uint64 block) argument
341 _ValidateHeaderCRC(efi_table_header& header) argument
388 _Dump(const efi_table_header& header) argument
[all...]
/haiku/src/apps/debuganalyzer/gui/
H A DHeaderView.h26 virtual float HeaderHeight(BView* view, const Header* header)
29 const Header* header) = 0;
31 BRect updateRect, const Header* header,
43 virtual float HeaderHeight(BView* view, const Header* header);
45 const Header* header);
47 BRect updateRect, const Header* header,
56 virtual void HeaderWidthChanged(Header* header);
57 virtual void HeaderWidthRestrictionsChanged(Header* header);
58 virtual void HeaderValueChanged(Header* header);
59 virtual void HeaderRendererChanged(Header* header);
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequestChannel.cpp177 // write the request header
178 RequestHeader header; local
179 header.type = B_HOST_TO_BENDIAN_INT32(request->GetType());
180 header.size = B_HOST_TO_BENDIAN_INT32(size);
182 error = writer.Write(&header, sizeof(RequestHeader));
203 // get the request header
204 RequestHeader header; local
205 status_t error = fChannel->Receive(&header, sizeof(RequestHeader));
208 header.type = B_HOST_TO_BENDIAN_INT32(header
[all...]
/haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/
H A Dh2util.cpp92 struct hci_command_header* header = nb_get_whole_buffer(nbuf);
93 return header->clen + sizeof(struct hci_command_header);
97 struct hci_event_header* header = nb_get_whole_buffer(nbuf);
98 return header->elen + sizeof(struct hci_event_header);
102 struct hci_acl_header* header = nb_get_whole_buffer(nbuf);
103 return header->alen + sizeof(struct hci_acl_header);
107 struct hci_sco_header* header = nb_get_whole_buffer(nbuf);
108 return header->slen + sizeof(struct hci_sco_header);
/haiku/src/kits/network/libnetapi/
H A DHttpHeaders.cpp171 BHttpHeader* header local
174 if (header->NameIs(name))
175 return header->Value();
186 BHttpHeader* header local
189 return *header;
210 BHttpHeader* header local
213 if (header->NameIs(name))
276 BHttpHeader& header = HeaderAt(i); local
277 message->AddString(header.Name(), header
315 BHttpHeader* header local
334 BHttpHeader* header local
343 _AddOrDeleteHeader(BHttpHeader* header) argument
[all...]
/haiku/src/bin/bfs_tools/lib/
H A Ddump.h27 extern void dump_bplustree_header(const bplustree_header* header);
29 const bplustree_header* header, Disk* disk = NULL);

Completed in 228 milliseconds

12345678910