Home | History | Annotate | Download | only in iso

Lines Matching refs:bb

22     public static void writeUInt64(ByteBuffer bb, long u) {
23 bb.putLong(u);
26 public static void writeUInt32(ByteBuffer bb, long u) {
27 bb.putInt((int) u);
31 public static void writeUInt32BE(ByteBuffer bb, long u) {
33 writeUInt16BE(bb, (int) u & 0xFFFF);
34 writeUInt16BE(bb, (int) ((u >> 16) & 0xFFFF));
39 public static void writeUInt24(ByteBuffer bb, int i) {
41 writeUInt16(bb, i >> 8);
42 writeUInt8(bb, i);
47 public static void writeUInt16(ByteBuffer bb, int i) {
49 writeUInt8(bb, i >> 8);
50 writeUInt8(bb, i & 0xFF);
53 public static void writeUInt16BE(ByteBuffer bb, int i) {
55 writeUInt8(bb, i & 0xFF);
56 writeUInt8(bb, i >> 8);
59 public static void writeUInt8(ByteBuffer bb, int i) {
61 bb.put((byte) i);
65 public static void writeFixedPont1616(ByteBuffer bb, double v) {
67 bb.put((byte) ((result & 0xFF000000) >> 24));
68 bb.put((byte) ((result & 0x00FF0000) >> 16));
69 bb.put((byte) ((result & 0x0000FF00) >> 8));
70 bb.put((byte) ((result & 0x000000FF)));
73 public static void writeFixedPont88(ByteBuffer bb, double v) {
75 bb.put((byte) ((result & 0xFF00) >> 8));
76 bb.put((byte) ((result & 0x00FF)));
79 public static void writeIso639(ByteBuffer bb, String language) {
87 writeUInt16(bb, bits);
90 public static void writeUtf8String(ByteBuffer bb, String string) {
92 bb.put(Utf8.convert(string));
93 writeUInt8(bb, 0);