Home | History | Annotate | Download | only in telephony

Lines Matching refs:dst

40 gsm_bcdi_to_ascii( cbytes_t  bcd, int  bcdlen, bytes_t  dst )
54 if (dst) dst[result] = bcdichars[c];
70 gsm_bcdi_from_ascii( cbytes_t ascii, int asciilen, bytes_t dst )
94 if (dst) dst[result] = (byte_t) phase;
100 if (dst) dst[result] = (byte_t)( phase | 0xf0 );
181 gsm_hex_to_bytes0( cbytes_t hex, int hexlen, bytes_t dst )
186 dst[nn] = (byte_t) gsm_hex2_to_byte0( (const char*)hex+2*nn );
189 dst[nn] = gsm_hexchar_to_int0( hex[2*nn] ) << 4;
194 gsm_hex_to_bytes( cbytes_t hex, int hexlen, bytes_t dst )
204 dst[nn] = (byte_t) c;
732 * the 'dst' array must contain at least 160 chars. the function
735 * assumes the 'dst' array has at least septet_count items, returns the
801 bytes_t dst;
808 bwriter_init( BWriter writer, bytes_t dst, int start )
812 writer->dst = dst + (start >> 3);
818 writer->pad = writer->dst[0] & ~(0xFF << shift);
828 writer->dst[0] = (byte_t)writer->pad;
831 writer->dst += 1;
840 writer->dst[0] = (byte_t)writer->pad;
843 writer->dst += 1;
850 utf8_to_gsm7( cbytes_t utf8, int utf8len, bytes_t dst, int offset )
855 if (dst == NULL)
858 bwriter_init( writer, dst, offset );
887 utf8_to_gsm8( cbytes_t utf8, int utf8len, bytes_t dst )
901 if (dst)
902 dst[result] = (byte_t)nn;
909 if (dst) {
910 dst[result+0] = (byte_t) GSM_7BITS_ESCAPE;
911 dst[result+1] = (byte_t) nn;
918 if (dst)
919 dst[result] = 0x20;
927 ucs2_to_gsm7( cbytes_t ucs2, int ucs2len, bytes_t dst, int offset )
932 bwriter_init( writer, dst, offset );
962 ucs2_to_gsm8( cbytes_t ucs2, int ucs2len, bytes_t dst )
965 bytes_t dst0 = dst;
973 *dst++ = (byte_t)nn;
979 dst[0] = (byte_t) GSM_7BITS_ESCAPE;
980 dst[1] = (byte_t) nn;
981 dst += 2;
987 *dst++ = 0x20;
992 return (dst - dst0);
996 gsm_bcdnum_to_ascii( cbytes_t bcd, int count, bytes_t dst )
1010 if (dst) dst[result] = "0123456789*#,N"[c];
1024 gsm_bcdnum_from_ascii( cbytes_t ascii, int asciilen, bytes_t dst )
1049 if (dst) dst[result/2] = (byte_t) phase;
1055 if (dst) dst[result/2] = (byte_t)(phase | 0xf0);
1073 sim_adn_alpha_to_utf8( cbytes_t alpha, cbytes_t end, bytes_t dst )
1086 result = ucs2_to_utf8( alpha, (end-alpha)/2, dst );
1114 result += utf8_write(dst, result, base + (c & 0x7f));
1121 result += utf8_from_gsm8(alpha, count, (dst ? dst+result : NULL));
1127 result = utf8_from_gsm8(alpha, end-alpha, dst);
1135 sim_adn_alpha_from_utf8( cbytes_t utf8, int utf8len, bytes_t dst )
1141 result = utf8_to_gsm8(utf8, utf8len, dst);
1144 if (dst) {
1145 dst[0] = 0x80;
1147 result = 1 + utf8_to_ucs2(utf8, utf8len, dst ? (dst+1) : NULL)*2;