ErlOutputStream Poke4BE Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Write the low four bytes of a value to the stream in bif endian order, at the specified position. If the position specified is beyond the end of the stream, this method will have no effect

Namespace: NFX.Erlang
Assembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public void Poke4BE(
	int offset,
	int n
)
Remarks

Normally this method should be used in conjunction with Position, when is is necessary to insert data into the stream before it is known what the actual value should be. For example:
             int pos = s.Position;
             s.Write4BE(0); // make space for length data,
             // but final value is not yet known
            
             [ ...more write statements...]
            
             // later... when we know the length value
             s.Poke4BE(pos, length);
             
See Also