/// <summary> /// Reads an array of values from a <see cref="BitStream"/>. /// </summary> /// <param name="bs">The <see cref="BitStream"/> to read from.</param> /// <param name="count">The number of values to read.</param> /// <returns>The array of read values.</returns> public static sbyte[] ReadSBytes(this BitStream bs, int count) { var ret = new sbyte[count]; for (var i = 0; i < count; i++) { ret[i] = bs.ReadSByte(); } return(ret); }
/// <summary> /// Reads a 8-bit signed integer. /// </summary> /// <param name="name">Unused by the <see cref="BinaryValueReader"/>.</param> /// <returns>Value read from the reader.</returns> public sbyte ReadSByte(string name) { return(_reader.ReadSByte()); }