Perforce API for the .Net CLR P4.Net

P4Callback.OutputContent Method 

Executed when a command outputs file content.

[Visual Basic]
Overridable Public Sub OutputContent( _
   ByVal buffer As Byte(), _
   ByVal IsText As Boolean _
)
[C#]
public virtual void OutputContent(
   byte[] buffer,
   bool IsText
);

Parameters

buffer
A buffer containing a chunk of data.
IsText
If set to true [is text].

Remarks

OutputContent is typically called from the 'print' command, but can also be called from 'describe', 'diff', or 'diff2'. Output content may be called several times for a single file if it is large. You must orchestrate between calls to OutputMessage and OutputContent to know which file you are working with. If the content is textual, you can use the ContentEncoding property to convert to text.

See Also

P4Callback Class | P4API Namespace