Overview
| Artifact ID: | 645917c7c2b3ad0e5df920d7265322648abfd36a |
|---|---|
| Ticket: | 1665628fffffffffffffffffffffffffffffffff
destructive scan of a ByteArray |
| User & Date: | dvrsn on 2007-02-23 05:11:26 |
Changes
- icomment:
File Added - 217289: tclBinary.patch Logged In: YES user_id=24996 Originator: YES Attached is a patch (against 8.4.14) implementing the "set" and "dscan" subcommands. I'm not sure is the variable handling is correct (particularly, should the reference count be incremented when creating a new object?) Rather than a separate "append" subcommand, the pattern would be binary set buffer "@[string length $buffer] a*" $dataToAppend Note too, that "set" will shrink the existing ByteArray if requested (meaning it will shrink if the format does not end with "@[string length $buffer]"). For an in-place/destructive modification, this is probably the right thing to do. File Added: tclBinary.patch
- login: "dvrsn"
- mimetype: "text/plain"
- username: "dvrsn"