Check-in [5c99e150ea]

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

Overview
Comment:Remove unique ID; Write short for record ID.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5c99e150ea48e55a0cea44d5064c3c83954727bf
User & Date: stephanie.gawroriski 2019-07-13 17:19:54
Context
2019-07-13
17:37
Add more flags to the Palm ROM. check-in: e089fe1b81 user: stephanie.gawroriski tags: trunk
17:19
Remove unique ID; Write short for record ID. check-in: 5c99e150ea user: stephanie.gawroriski tags: trunk
17:14
Write missing next record list. check-in: 7c8be614a6 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to bldt/libs/palmos-utils/dev/shadowtail/palmos/PalmDatabaseBuilder.java.

77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
...
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
...
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
...
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
	private int _modcount =
		0;
	
	/** The version. */
	private int _version =
		0;
	
	/** Unique ID seed. */
	private int _uniqueid =
		new Random(this._createtime).nextInt();
	
	/**
	 * Initializes the database builder.
	 *
	 * @param __type The database type.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/07/13
	 */
................................................................................
		if (__type == null)
			throw new NullPointerException("NARG");
		
		this._type = __type;
		return this;
	}
	
	/**
	 * Sets the unique database ID.
	 *
	 * @param __id The database ID.
	 * @return {@code this}.
	 * @since 2019/07/13
	 */
	public final PalmDatabaseBuilder setUniqueId(int __id)
	{
		this._uniqueid = __id;
		return this;
	}
	
	/**
	 * Sets the version number.
	 *
	 * @param __v The version number.
	 * @return {@code this}.
	 * @since 2019/07/13
	 */
................................................................................
		// Type
		dos.writeInt(PalmDatabaseBuilder.__fourToInt(this._type));
		
		// Creator
		dos.writeInt(PalmDatabaseBuilder.__fourToInt(this._creator));
		
		// Unique ID
		dos.writeInt(this._uniqueid);
		
		// Next record list (unused in files)
		dos.writeInt(0);
		
		// Need to work with records now
		List<PalmRecord> records = this._records;
		int numrecords = records.size();
................................................................................
			// Resource entry
			if (isrc)
			{
				// Type
				dos.writeInt(PalmDatabaseBuilder.__fourToInt(pr.type));
				
				// ID
				dos.writeInt(pr.id);
				
				// Offset
				dos.writeInt(offset);
			}
			
			// Database entry
			else







<
<
<
<







 







<
<
<
<
<
<
<
<
<
<
<
<
<







 







|







 







|







77
78
79
80
81
82
83




84
85
86
87
88
89
90
...
241
242
243
244
245
246
247













248
249
250
251
252
253
254
...
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
...
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
	private int _modcount =
		0;
	
	/** The version. */
	private int _version =
		0;
	




	/**
	 * Initializes the database builder.
	 *
	 * @param __type The database type.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/07/13
	 */
................................................................................
		if (__type == null)
			throw new NullPointerException("NARG");
		
		this._type = __type;
		return this;
	}
	













	/**
	 * Sets the version number.
	 *
	 * @param __v The version number.
	 * @return {@code this}.
	 * @since 2019/07/13
	 */
................................................................................
		// Type
		dos.writeInt(PalmDatabaseBuilder.__fourToInt(this._type));
		
		// Creator
		dos.writeInt(PalmDatabaseBuilder.__fourToInt(this._creator));
		
		// Unique ID
		dos.writeInt(0);
		
		// Next record list (unused in files)
		dos.writeInt(0);
		
		// Need to work with records now
		List<PalmRecord> records = this._records;
		int numrecords = records.size();
................................................................................
			// Resource entry
			if (isrc)
			{
				// Type
				dos.writeInt(PalmDatabaseBuilder.__fourToInt(pr.type));
				
				// ID
				dos.writeShort(pr.id);
				
				// Offset
				dos.writeInt(offset);
			}
			
			// Database entry
			else