<i>Need way to append bytearray objs</i> status still Open with 4 other changes
by
.
D 2001-07-06T18:30:09
J icomment Logged\sIn:\sYES\s\nuser_id=240\n\nWell,\sTcl_AppendObjToObj\sactually\sseems\sto\swork\sok.\s\sI\sam\nable\sto\smanipulate\sa\sjpeg\swith\sit\swith\sno\scorruption.\s\sIt\ntranslates\sits\sbytes\sinto\sUTF,\swhereas\sTcl_AppendToObj\sdoes\nnot.\s\sMy\squick\sfix\sis\sthe\sfollowing:\n\n---\stclStringObj.c2001/05/15\s21:30:461.21\n+++\stclStringObj.c2001/07/06\s11:22:56\n@@\s-979,7\s+979,8\s@@\n\s\n\sstringPtr\s=\sGET_STRING(objPtr);\n\s\s\s\s\s}\selse\s{\n-\nAppendUtfToUtfRep(objPtr,\sbytes,\slength);\n+\nTcl_Obj\s*appendObj\s=\sTcl_NewByteArrayObj(bytes,\slength);\n+\nTcl_AppendObjToObj(objPtr,\sappendObj);\n\s\s\s\s\s}\n\s}\n\nMaybe\sthere\sis\sa\smore\sefficient\sway\sof\stransforming\sthe\nbytes\sto\sUTF?\s\sIs\sit\sworthwhile\smaking\sa\sspecial\scase\sin\norder\sto\sspeed\sup\sthis\soperation?\s(i.e.,\scheck\sto\ssee\sif\nobjptr\sis\sa\sbytearray\shere,\sand\salso\sin\sobjtoobj).\n
J login davidw
J mimetype text/plain
J username davidw
K 436332ffffffffffffffffffffffffffffffffff
U davidw
Z d6d403ba0ac65e0d30b0ec1cf0c03c76