Namespaces
Variants
Actions
Revision as of 11:33, 8 December 2011 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Como manipular um buffer de dados

Jump to: navigation, search
Dados do artigo

Artigo
Tradução:
Última alteração feita por hamishwillee em 08 Dec 2011


Uma dica em Java ME ilustrando uma forma alternativa para manipular o buffer de dados é usando o método setData() para substituir o buffer do datagrama de dados com um novo.

byte[] dataBytes = "Hello, world\n".getBytes( );
dgram.setData(dataBytes, 0, dataBytes.length);
sender.send(dgram);
129 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved