Check-in [d302346283]

Login

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

Overview
Comment:WIP
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d3023462832e95343aaf643c3d4db553035ab3273a487ac6aa48f3351d78f5a0
User & Date: dgp 2020-03-11 16:55:53.679
Context
2020-03-13
19:22
TIP 569 is Accepted with vote 8-0-0. check-in: e25ccc2330 user: dgp tags: trunk
2020-03-11
16:55
WIP check-in: d302346283 user: dgp tags: trunk
14:01
WIP check-in: f86fa8720b user: dgp tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to tip/568.md.
186
187
188
189
190
191
192
193









194
195
196
197
198
199
200

# Specification

In Tcl 8.7, create a new public routine,

> _unsigned char *_ **Tcl_GetBytesFromObj**(*Tcl_Interp* _*_, *Tcl_Obj* _*_,  _int *_);

which attempts to extract a byte sequence format of the value returns a pointer to a byte sequence











# Compatibility

# Scope

This TIP proposes a change to **Tcl_GetByteArrayFromObj** that is an







|
>
>
>
>
>
>
>
>
>







186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209

# Specification

In Tcl 8.7, create a new public routine,

> _unsigned char *_ **Tcl_GetBytesFromObj**(*Tcl_Interp* _*_, *Tcl_Obj* _*_,  _int *_);

which attempts to extract a byte sequence representation of the value. If
the value contains any character outside the byte range, it does not have
a valid representation as a byte sequence. In that circumstance, the
value **NULL** is returned, and if the interpreter argument is not **NULL**,
standard error messages and codes are left in it. Otherwise, a pointer
to the byte sequence representation is returned (after creating it, if
necessary) and the number of bytes in the sequence is written to the
storage at the output pointer, which is not permitted to be **NULL**.




# Compatibility

# Scope

This TIP proposes a change to **Tcl_GetByteArrayFromObj** that is an