static MemoryBTXObject readObject(DataInput in) throws IOException {
		String name = readString(in);
		MemoryBTXObject ret = new MemoryBTXObject(name);
		int count = read32BitUnsigned(in);
		while (count > 0) {
			ret.attrs.add(readAttribute(in));
		}
		count = read32BitUnsigned(in);
		while (count > 0) {
			ret.children.add(readObject(in));
		}
		return ret;
	}