Mercurial > projects > dwt-win
comparison dwt/internal/image/PngChunk.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 1801ddeb8f32 |
children | 36f5cb12e1a2 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
23 import dwt.internal.image.PngTrnsChunk; | 23 import dwt.internal.image.PngTrnsChunk; |
24 | 24 |
25 import tango.core.Exception; | 25 import tango.core.Exception; |
26 import tango.text.convert.Format; | 26 import tango.text.convert.Format; |
27 import dwt.dwthelper.System; | 27 import dwt.dwthelper.System; |
28 import dwt.dwthelper.utils; | |
28 | 29 |
29 class PngChunk { | 30 class PngChunk { |
30 byte[] reference; | 31 byte[] reference; |
31 | 32 |
32 static const int LENGTH_OFFSET = 0; | 33 static const int LENGTH_OFFSET = 0; |
372 | 373 |
373 /** | 374 /** |
374 * Provided so that subclasses can override and add | 375 * Provided so that subclasses can override and add |
375 * data to the toString() call. | 376 * data to the toString() call. |
376 */ | 377 */ |
377 char[] contributeToString() { | 378 String contributeToString() { |
378 return ""; | 379 return ""; |
379 } | 380 } |
380 | 381 |
381 /** | 382 /** |
382 * Returns a string containing a concise, human-readable | 383 * Returns a string containing a concise, human-readable |
383 * description of the receiver. | 384 * description of the receiver. |
384 * | 385 * |
385 * @return a string representation of the event | 386 * @return a string representation of the event |
386 */ | 387 */ |
387 override public char[] toString() { | 388 override public String toString() { |
388 char[] buffer = Format( "{\n\tLength: {}\n\tType: {}{}\n\tCRC: {:X}\n}", | 389 String buffer = Format( "{\n\tLength: {}\n\tType: {}{}\n\tCRC: {:X}\n}", |
389 getLength(), | 390 getLength(), |
390 cast(char[]) getTypeBytes(), | 391 cast(String) getTypeBytes(), |
391 contributeToString(), | 392 contributeToString(), |
392 getCRC()); | 393 getCRC()); |
393 return buffer; | 394 return buffer; |
394 } | 395 } |
395 | 396 |