Lines Matching refs:byte

54 bool InputStream::PutUByte(uint8 byte) {
56 fBufferSize = 1; fBuffer = byte; fPos --;
116 uint8 byte;
118 if (!fStream->ReadUByte(byte) || byte != *t) return false;
124 uint8 byte;
125 if (!fStream->ReadUByte(byte)) return false;
130 if (byte != *t) {
131 if (!fStream->ReadUByte(byte)) return false;
136 if (!fStream->ReadUByte(byte)) return false;
137 if (byte != *t) goto startagain;
146 uint8 byte;
147 while (fStream->ReadUByte(byte)) {
148 if (isdigit(byte)) {
149 n = 10 * n + (byte - '0');
151 fStream->PutUByte(byte);
197 bool Disasm::DecodeOperator(uint8 byte) {
198 switch (byte) {
315 printf("Unsupported operator %d %x\n", (int)byte, (int)byte);
448 struct ATTRIBUTE* Disasm::ReadData(uint8 byte) {
449 struct ATTRIBUTE attr(0, byte);
451 switch (byte) {
479 if (!ReadArrayLength(length) || !ReadArray(byte, length, &attr)) return NULL;
526 fprintf(stderr, "Unknown data tag %d %x\n", (int)byte, (int)byte);
534 bool Disasm::PushData(uint8 byte) {
535 struct ATTRIBUTE* attr = ReadData(byte);
940 bool Disasm::DecodeAttribute(uint8 byte) {
941 if (byte == HP_8BitAttrId) {
1163 fprintf(stderr, "Unsupported attribute tag %d %2.2x\n", (int)byte, (int)byte);
1168 bool Disasm::DecodeEmbedData(uint8 byte) {
1170 if (byte == HP_EmbeddedData) {
1196 if (byte == HP_EmbeddedData) {
1198 } else if (byte == HP_EmbeddedDataByte) {
1216 uint8 byte;
1217 while (fStream->ReadUByte(byte)) {
1218 if (IsOperator(byte)) {
1219 if (!DecodeOperator(byte)) return false;
1220 } else if (IsDataType(byte)) {
1221 if (!PushData(byte)) return false;
1222 } else if (IsAttribute(byte)) {
1223 bool ok = DecodeAttribute(byte);
1226 } else if (IsEmbedData(byte)) {
1227 if (!DecodeEmbedData(byte)) return false;
1228 } else if (IsWhiteSpace(byte)) {
1230 } else if (IsEsc(byte)) {
1233 Error("Unknown byte in input stream");