• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tcl/tcl/generic/

Lines Matching refs:ByteArray

80  * UTF-8 characters, while a ByteArray is an array of 8-bit quantities.
81 * Accessor functions are provided to convert a ByteArray to a String or a
82 * String to a ByteArray. Two or more consecutive bytes in an array of bytes
84 * a string. But obtaining the String from a ByteArray is guaranteed to
88 * Converting a ByteArray to a String proceeds by casting each byte in the
92 * representation is the same as the ByteArray representation.
94 * Converting a String to a ByteArray proceeds by getting the Unicode
96 * truncating the upper 8 bits, and then storing the byte in the ByteArray.
97 * Converting from ByteArray to String and back to ByteArray is not lossy, but
98 * converting an arbitrary String to a ByteArray may be.
110 * The following structure is the internal rep for a ByteArray object. Keeps
112 * the byte array to enable growing and shrinking of the ByteArray object with
116 typedef struct ByteArray {
124 } ByteArray;
127 ((unsigned) (sizeof(ByteArray) - 4 + (len)))
129 ((ByteArray *) (objPtr)->internalRep.otherValuePtr)
140 * This procedure is creates a new ByteArray object and initializes it
251 * Modify an object to be a ByteArray object and to have the specified
266 Tcl_Obj *objPtr, /* Object to initialize as a ByteArray. */
272 ByteArray *byteArrayPtr;
280 byteArrayPtr = (ByteArray *) ckalloc(BYTEARRAY_SIZE(length));
296 * is not already a ByteArray object, an attempt will be made to convert
300 * Pointer to array of bytes representing the ByteArray object.
310 Tcl_Obj *objPtr, /* The ByteArray object. */
312 * array of bytes in the ByteArray object. */
314 ByteArray *baPtr;
352 Tcl_Obj *objPtr, /* The ByteArray object. */
355 ByteArray *byteArrayPtr;
366 byteArrayPtr = (ByteArray *) ckrealloc(
382 * Generate the ByteArray internal rep from the string rep.
388 * A ByteArray object is stored as the internal rep of objPtr.
396 Tcl_Obj *objPtr) /* The object to convert to type ByteArray. */
401 ByteArray *byteArrayPtr;
408 byteArrayPtr = (ByteArray *) ckalloc(BYTEARRAY_SIZE(length));
430 * Deallocate the storage associated with a ByteArray data object's
455 * Initialize the internal representation of a ByteArray Tcl_Obj to a
456 * copy of the internal representation of an existing ByteArray object.
473 ByteArray *srcArrayPtr, *copyArrayPtr;
478 copyArrayPtr = (ByteArray *) ckalloc(BYTEARRAY_SIZE(length));
493 * Update the string representation for a ByteArray data object. Note:
502 * ByteArray-to-string conversion.
512 Tcl_Obj *objPtr) /* ByteArray object whose string rep to
518 ByteArray *byteArrayPtr;