Pipe.peek

Read a single ubyte from the specified message but do not modify the internal offset. Consecutive calls to peek() will return portions of the message starting at the same position.

  1. size_t peek(ubyte* output, size_t length, size_t offset, message_id msg)
  2. size_t peek(ubyte[] output, size_t offset, message_id msg)
  3. size_t peek(ubyte output, size_t offset, message_id msg)
    struct Pipe
    public const
    size_t
    peek
    (
    ref ubyte output
    ,
    size_t offset
    ,)

Parameters

output ubyte

the ubyte to write the peeked message ubyte to

offset size_t

the offset from the current position in message

msg message_id

the number identifying the message to peek from

Return Value

Type: size_t

number of bytes actually peeked and written into output

Meta