String IpAddressV6::toString() const { OutStringStream oss; TextWriter textWriter(oss); for(std::size_t i = 0; i < getByteCount(); i++) { textWriter << at(i); if(i < getByteCount() - 1) { textWriter << ':'; } } return oss.toString(); }
bool isNull(const Image & img) { return getByteCount(img) == 0; }
unsigned char initClasses(void) { unsigned short numberOfclasses; unsigned short count; uint16 classDataSize; uint16 inheritanceMatrixSize; numberOfclasses = readShort(); printStr("deserializing "); printShort(numberOfclasses); printStr(" classes"); classes = _malloc_(sizeof(ClassInfo) * numberOfclasses); if (!classes) { return 0; } for (count = 0; count < numberOfclasses; count++) { ClassInfo *current = &classes[count]; printStr("."); current->superClass = readShort(); current->dimension = readByte(); current->hasLock = readByte(); current->dobjectSize = readShort(); current->pobjectSize = readShort(); { unsigned short length; length = readShort(); if (length) { current->interfaces = readClassInterfaces(length); } } current->name = readName(); } printStr("done\n"); classDataSize = readShort(); printStr("Allocating class data ["); printShort(classDataSize); printStr("]\n"); classData = _malloc_(classDataSize); if (!classData) { return 0; } inheritanceMatrixSize = readShort(); printStr("Allocating inheritanceMatrix ["); printShort(inheritanceMatrixSize); printStr("]\n"); inheritanceMatrix = _malloc_(inheritanceMatrixSize); for (count = 0; count < inheritanceMatrixSize; count++) { inheritanceMatrix[count] = readByte(); } printStr("deserializing class store configuration variables\n"); tupac = readByte(); JAVA_LANG_STRING_var = readShort(); JAVA_LANG_OBJECT_var = readShort(); JAVA_LANG_INTEGER_var = readShort(); JAVA_LANG_BYTE_var = readShort(); JAVA_LANG_SHORT_var = readShort(); JAVA_LANG_BOOLEAN_var = readShort(); JAVA_LANG_LONG_var = readShort(); JAVA_LANG_CLASS_var = readShort(); JAVA_LANG_CLASSCASTEXCEPTION_var = readShort(); JAVA_LANG_OUTOFMEMORYERROR_var = readShort(); JAVA_LANG_THROWABLE_var = readShort(); JAVA_LANG_ARITHMETICEXCEPTION_var = readShort(); VM_HARDWAREOBJECT_var = readShort(); JAVA_LANG_NULLPOINTEREXCEPTION_var = readShort(); _C_var = readShort(); _I_var = readShort(); VM_MEMORY_var = readShort(); printStr("done\n"); closeIO(); printStr("deserialized "); printShort(getByteCount()); printStr(" bytes from "); printStr(getOutputFile()); printStr("\n"); return 1; }