Check-in [676f9a2f89]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Correct alignment not being written correctly.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:676f9a2f8924f8ca2f9aea2f56ca99e8649e4019
User & Date: stephanie.gawroriski 2019-09-09 10:59:44
Context
2019-09-09
11:05
Add base part decode for types which are composed of parts. check-in: 25400e6dfe user: stephanie.gawroriski tags: trunk
10:59
Correct alignment not being written correctly. check-in: 676f9a2f89 user: stephanie.gawroriski tags: trunk
07:04
Backup developer notes. check-in: bae2373524 user: squirreljme tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/libs/io/net/multiphasicapps/io/TableSectionOutputStream.java.

355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
		// the file for section references.
		List<Section> sections = this._sections;
		for (int i = 0, n = sections.size(); i < n; i++)
		{
			Section section = sections.get(i);
			
			// Perform alignment of this section
			filesize += (section.alignment - 1) -
				(filesize % section.alignment);
			
			// Section is addressed here
			section._writeaddress = filesize;
			
			// Move the current file size up by the section's size
			int writesize = (section.isvariable ?
				section._size : section.fixedsize);







|
|







355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
		// the file for section references.
		List<Section> sections = this._sections;
		for (int i = 0, n = sections.size(); i < n; i++)
		{
			Section section = sections.get(i);
			
			// Perform alignment of this section
			if ((filesize % section.alignment) != 0)
				filesize += section.alignment - (filesize % section.alignment);
			
			// Section is addressed here
			section._writeaddress = filesize;
			
			// Move the current file size up by the section's size
			int writesize = (section.isvariable ?
				section._size : section.fixedsize);