mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 09:40:04 +00:00 
			
		
		
		
	Contour vectors
This commit is contained in:
		
							parent
							
								
									96cd27adcb
								
							
						
					
					
						commit
						e505edf156
					
				
					 8 changed files with 515 additions and 16 deletions
				
			
		|  | @ -32,10 +32,10 @@ public: | |||
|    uint16_t lengthOfBlock_; | ||||
|    uint16_t valueOfVector_; | ||||
| 
 | ||||
|    std::vector<uint16_t> beginI_; | ||||
|    std::vector<uint16_t> beginJ_; | ||||
|    std::vector<uint16_t> endI_; | ||||
|    std::vector<uint16_t> endJ_; | ||||
|    std::vector<int16_t> beginI_; | ||||
|    std::vector<int16_t> beginJ_; | ||||
|    std::vector<int16_t> endI_; | ||||
|    std::vector<int16_t> endJ_; | ||||
| }; | ||||
| 
 | ||||
| UnlinkedVectorPacket::UnlinkedVectorPacket() : | ||||
|  | @ -103,11 +103,11 @@ bool UnlinkedVectorPacket::Parse(std::istream& is) | |||
| 
 | ||||
|    // The number of vectors is equal to the size divided by the number of bytes
 | ||||
|    // in a vector
 | ||||
|    int      vectorCount = vectorSize / 8; | ||||
|    uint16_t beginI; | ||||
|    uint16_t beginJ; | ||||
|    uint16_t endI; | ||||
|    uint16_t endJ; | ||||
|    int     vectorCount = vectorSize / 8; | ||||
|    int16_t beginI; | ||||
|    int16_t beginJ; | ||||
|    int16_t endI; | ||||
|    int16_t endJ; | ||||
| 
 | ||||
|    for (int v = 0; v < vectorCount && !is.eof(); v++) | ||||
|    { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat