示例#1
0
 /// <summary>
 /// Encode a double value into this byte array. A call to this method
 /// must be preceded by a call to "encodeTag" or "encodeTagArray."
 /// </summary>
 /// <param name="value">The value to encode into this array.</param>
 /// <returns>This builder.</returns>
 public BFlatBuilder encode(double value)
 {
     position += Fixed.encodeDouble(value, data, position);
     return(this);
 }
示例#2
0
 /// <summary>
 /// Encode an integer value into this byte array. A call to this method
 /// must be preceded by a call to "encodeTag" or "encodeTagArray."
 /// </summary>
 /// <param name="value">The value to encode into this array.</param>
 /// <returns>This builder.</returns>
 public BFlatBuilder encode(int value)
 {
     position += Fixed.encodeInt32(value, data, position);
     return(this);
 }
示例#3
0
 /// <summary>
 /// Encode a long value into this byte array. A call to this method
 /// must be preceded by a call to "encodeTag" or "encodeTagArray."
 /// </summary>
 /// <param name="value">The value to encode into this array.</param>
 /// <returns>This builder.</returns>
 public BFlatBuilder encode(long value)
 {
     position += Fixed.encodeInt64(value, data, position);
     return(this);
 }
示例#4
0
 /// <summary>
 /// Encode a byte value into this byte array. A call to this method
 /// must be preceded by a call to "encodeTag" or "encodeTagArray."
 /// </summary>
 /// <param name="value">The value to encode into this array.</param>
 /// <returns>This builder.</returns>
 public BFlatBuilder encode(sbyte value)
 {
     position += Fixed.encodeInt8(value, data, position);
     return(this);
 }