DataWriterExtensionsWriteBit(IDataWriter, Int32, Boolean, Int32, Endian) Method |
Writes a bit at the current position in the buffer.
Namespace: Demo3D.IOAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic static void WriteBit(
this IDataWriter writer,
int sizeBytes,
bool val,
int bitNo,
Endian endian
)
Parameters
- writer IDataWriter
- The data writer.
- sizeBytes Int32
- The size of the bitset.
- val Boolean
- The value to write.
- bitNo Int32
- The bit within the byte to write.
- endian Endian
- The encoding of the data in the buffer.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDataWriter. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also