Pipe.peek

Read 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)
    struct Pipe
    public const
    size_t
    peek
    (
    ref ubyte[] output
    ,
    size_t offset
    ,)
  3. size_t peek(ubyte output, size_t offset, message_id msg)

Parameters

output ubyte[]

the ubyte array to write the peeked message part 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