Find Jobs
Hire Freelancers

Decode Hex to NSString

$30-250 USD

Concluído
Publicado há aproximadamente 9 anos

$30-250 USD

Pago na entrega
Hi Guys, I need your help to decode hex string to nsstring by Objective-c. e.g.) HEX string 03 01 68 74 74 70 3A 2F 2F is http:// in NSString [login to view URL] Thanks
ID do Projeto: 7262780

Sobre o projeto

8 propostas
Projeto remoto
Ativo há 9 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
A proposal has not yet been provided
$35 USD em 1 dia
5,0 (1 avaliação)
0,6
0,6
8 freelancers estão ofertando em média $86 USD for esse trabalho
Avatar do Usuário
Hello.. Sorry for my mistake.... My answer was wrong. Here is right answer. - (NSData *)byteArrayFromHexString:(NSString *)hexString { NSData *byteArray = nil; uint8_t *buffer = NULL; NSUInteger i = 0; unichar c = 0; NSUInteger count = 0; int num = 0; BOOL first = YES; NSUInteger length = 0; // Count the number of HEX characters. for (i = 0; i < [hexString length]; i++) { c = [hexString characterAtIndex:i]; if (((c >= '0') && (c <= '9')) || ((c >= 'A') && (c <= 'F')) || ((c >= 'a') && (c <= 'f'))) { count++; } } // Allocate the buffer. buffer = (uint8_t *) malloc((count + 1) / 2); if (buffer != NULL) { for (i = 0; i < [hexString length]; i++) { c = [hexString characterAtIndex:i]; if ((c >= '0') && (c <= '9')) { num = c - '0'; } else if ((c >= 'A') && (c <= 'F')) { num = c - 'A' + 10; } else if ((c >= 'a') && (c <= 'f')) { num = c - 'a' + 10; } else { num = -1; } if (num >= 0) { if (first) { buffer[length] = num << 4; } else { buffer[length] |= num; length++; } first = !first; } } // Create the byte array. byte
$147 USD em 3 dias
5,0 (3 avaliações)
4,2
4,2
Avatar do Usuário
Hi, thanks for your job posted. I am really happy to get an opportunity to apply to this project. I've read your job description so carefully and finally found out this job is very suitable for my skills and speciality. if you hire me I will make a sample app to convert hex to nsstring. Looking forward to your kind answer. Best Regards, Liu
$111 USD em 1 dia
5,0 (2 avaliações)
3,9
3,9
Avatar do Usuário
Hi. I can give you a working objective c code for the simple conversion. Then, you can use the code for whatever purpose you want. Thanks!
$48 USD em 1 dia
4,7 (4 avaliações)
2,9
2,9
Avatar do Usuário
A proposal has not yet been provided
$55 USD em 3 dias
5,0 (1 avaliação)
1,5
1,5
Avatar do Usuário
I will make you a C program that will convert the hex values to the string. You can rely on me for your requriement
$90 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) JAPAN
Kawasaki, Japan
5,0
6
Método de pagamento verificado
Membro desde mar. 31, 2011

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.