View source code
							
							
						
								Display the source code in std/bitmanip.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.bitmanip.append
Takes an integral value, converts it to the given endianness, and appends
    it to the given range of ubytes (using put) as a sequence of
    T ubytes starting at index. hasSlicing!R must be
    true.
						
				void append(T, Endian endianness = Endian
				  R range,
				
				  T value
				
				)
				
				if (canSwapEndianness!T && isOutputRange!(R, ubyte));
						
					
				Parameters
| Name | Description | 
|---|---|
| T | The integral type to convert the first Tbytes to. | 
| endianness | The endianness to write the bytes in. | 
| range | The range to append to. | 
| value | The value to append. | 
Example
import stdExample
bool
import stdExample
char wchar dchar
import stdExample
float double
import stdExample
enum
import stdExample
enum - bool
import stdExample
enum - float
import stdExample
enum - double
import stdExample
enum - real
import stdAuthors
Walter Bright, Andrei Alexandrescu, Jonathan M Davis, Alex Rønne Petersen, Damian Ziemba, Amaury SECHET
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.