| Index: runtime/bin/file.dart
|
| diff --git a/runtime/bin/file.dart b/runtime/bin/file.dart
|
| index ae674811a09c5be0ee3c0b35ebb1d05a5c5d71c2..d569562b29873ea1b3904f310d1bc5cd4296895b 100644
|
| --- a/runtime/bin/file.dart
|
| +++ b/runtime/bin/file.dart
|
| @@ -160,6 +160,17 @@ interface File factory _File {
|
| void setPositionSync(int position);
|
|
|
| /**
|
| + * Truncate (or extend) the file to [length] bytes. When the
|
| + * operation completes successfully the [truncateHandler] is called.
|
| + */
|
| + void truncate(int length);
|
| +
|
| + /**
|
| + * Synchronously truncate (or extend) the file to [length] bytes.
|
| + */
|
| + void truncateSync(int length);
|
| +
|
| + /**
|
| * Get the length of the file. When the operation completes the
|
| * [lengthHandler] is called with the length.
|
| */
|
| @@ -222,6 +233,7 @@ interface File factory _File {
|
| void set noPendingWriteHandler(void handler());
|
| void set positionHandler(void handler(int position));
|
| void set setPositionHandler(void handler());
|
| + void set truncateHandler(void handler());
|
| void set lengthHandler(void handler(int length));
|
| void set flushHandler(void handler());
|
| void set fullPathHandler(void handler(String path));
|
|
|