Beispiel #1
0
 /// <summary>
 /// Encode a tag into this byte array. A call to encodeTag must be
 /// followed by a call to "encode" unless type <paramref name="type"/>
 /// is <see cref="BFlatEncoding.Type.Null"/>.
 /// </summary>
 /// <param name="type">A value from <see cref="BFlatEncoding.Type"/>
 ///                    </param>
 /// <param name="tagName">The UTF-8 encoded tag name.</param>
 /// <returns>This builder.</returns>
 public BFlatBuilder encodeTag(BFlatEncoding.Type type, byte[] tagName)
 {
     return(encodeTag((byte)type, tagName));
 }
Beispiel #2
0
 encodeTagArray(BFlatEncoding.Type type, String tagName, int count)
 {
     encodeTag((byte)((byte)type | BFlatEncoding.ArrayMask), tagName);
     Leb128.encodeUnsigned(this, (uint)count);
     return(this);
 }