Lines Matching defs:header
44 Byte header[XZ_STREAM_HEADER_SIZE];
45 memcpy(header, XZ_SIG, XZ_SIG_SIZE);
46 header[XZ_SIG_SIZE] = (Byte)(f >> 8);
47 header[XZ_SIG_SIZE + 1] = (Byte)(f & 0xFF);
48 crc = CrcCalc(header + XZ_SIG_SIZE, XZ_STREAM_FLAGS_SIZE);
49 SetUi32(header + XZ_SIG_SIZE + XZ_STREAM_FLAGS_SIZE, crc);
50 return WriteBytes(s, header, XZ_STREAM_HEADER_SIZE);
55 Byte header[XZ_BLOCK_HEADER_SIZE_MAX];
59 header[pos++] = p->flags;
61 if (XzBlock_HasPackSize(p)) pos += Xz_WriteVarInt(header + pos, p->packSize);
62 if (XzBlock_HasUnpackSize(p)) pos += Xz_WriteVarInt(header + pos, p->unpackSize);
67 pos += Xz_WriteVarInt(header + pos, f->id);
68 pos += Xz_WriteVarInt(header + pos, f->propsSize);
69 memcpy(header + pos, f->props, f->propsSize);
73 header[pos++] = 0;
74 header[0] = (Byte)(pos >> 2);
75 SetUi32(header + pos, CrcCalc(header, pos));
76 return WriteBytes(s, header, pos + 4);