C# 클래스 Network.NWFramer

상속: NativeObject
파일 보기 프로젝트 열기: xamarin/xamarin-macios 1 사용 예제들

Private Properties

프로퍼티 타입 설명
NWFramer System
ParseInput bool
ParseOutput bool
ScheduleAsync void
TrampolineCleanupHandler void
TrampolineInputHandler nuint
TrampolineOutputHandler void
TrampolineParseInputHandler nuint
TrampolineParseOutputHandler void
TrampolineScheduleHandler void
TrampolineStopHandler void
TrampolineWakeupHandler void
nw_framer_async void
nw_framer_copy_local_endpoint System.IntPtr
nw_framer_copy_parameters System.IntPtr
nw_framer_copy_remote_endpoint System.IntPtr
nw_framer_create_options System.IntPtr
nw_framer_deliver_input void
nw_framer_deliver_input_no_copy bool
nw_framer_mark_failed_with_error void
nw_framer_mark_ready void
nw_framer_message_create System.IntPtr
nw_framer_parse_input bool
nw_framer_parse_output bool
nw_framer_pass_through_input void
nw_framer_pass_through_output void
nw_framer_prepend_application_protocol bool
nw_framer_schedule_wakeup void
nw_framer_set_cleanup_handler void
nw_framer_set_input_handler void
nw_framer_set_output_handler void
nw_framer_set_stop_handler void
nw_framer_set_wakeup_handler void
nw_framer_write_output void
nw_framer_write_output_data void
nw_framer_write_output_no_copy bool

공개 메소드들

메소드 설명
CreateMessage ( ) : Network.NWFramerMessage
CreateOptions ( Network.NWProtocolDefinition protocolDefinition ) : T?
DeliverInput ( ReadOnlySpan buffer, Network.NWFramerMessage message, bool isComplete ) : void
DeliverInputNoCopy ( nuint length, Network.NWFramerMessage message, bool isComplete ) : bool
MarkFailedWithError ( int errorCode ) : void
MarkReady ( ) : void
PassThroughInput ( ) : void
PassThroughOutput ( ) : void
PrependApplicationProtocol ( Network.NWProtocolOptions options ) : bool
ScheduleWakeup ( ulong milliseconds ) : void
WriteOutput ( DispatchData data ) : void
WriteOutput ( ReadOnlySpan data ) : void
WriteOutputNoCopy ( nuint outputLength ) : bool

비공개 메소드들

메소드 설명
NWFramer ( IntPtr handle, bool owns ) : System
ParseInput ( nuint minimumIncompleteLength, nuint maximumLength, Memory tempBuffer, NWFramerParseCompletionDelegate handler ) : bool
ParseOutput ( nuint minimumIncompleteLength, nuint maximumLength, Memory tempBuffer, Action handler ) : bool
ScheduleAsync ( Action handler ) : void
TrampolineCleanupHandler ( IntPtr block, IntPtr framer ) : void
TrampolineInputHandler ( IntPtr block, IntPtr framer ) : nuint
TrampolineOutputHandler ( IntPtr block, IntPtr framer, IntPtr message, nuint message_length, bool is_complete ) : void
TrampolineParseInputHandler ( IntPtr block, IntPtr buffer, nuint buffer_length, bool is_complete ) : nuint
TrampolineParseOutputHandler ( IntPtr block, IntPtr buffer, nuint buffer_length, bool is_complete ) : void
TrampolineScheduleHandler ( IntPtr block ) : void
TrampolineStopHandler ( IntPtr block, IntPtr framer ) : void
TrampolineWakeupHandler ( IntPtr block, IntPtr framer ) : void
nw_framer_async ( IntPtr framer, void* async_block ) : void
nw_framer_copy_local_endpoint ( IntPtr framer ) : IntPtr
nw_framer_copy_parameters ( IntPtr framer ) : IntPtr
nw_framer_copy_remote_endpoint ( IntPtr framer ) : IntPtr
nw_framer_create_options ( IntPtr framer_definition ) : IntPtr
nw_framer_deliver_input ( IntPtr framer, byte* input_buffer, nuint input_length, IntPtr message, bool is_complete ) : void
nw_framer_deliver_input_no_copy ( IntPtr framer, nuint input_length, IntPtr message, bool is_complete ) : bool
nw_framer_mark_failed_with_error ( IntPtr framer, int error_code ) : void
nw_framer_mark_ready ( IntPtr framer ) : void
nw_framer_message_create ( IntPtr framer ) : IntPtr
nw_framer_parse_input ( IntPtr framer, nuint minimum_incomplete_length, nuint maximum_length, byte* temp_buffer, BlockLiteral &parse ) : bool
nw_framer_parse_output ( IntPtr framer, nuint minimum_incomplete_length, nuint maximum_length, byte* temp_buffer, BlockLiteral &parse ) : bool
nw_framer_pass_through_input ( IntPtr framer ) : void
nw_framer_pass_through_output ( IntPtr framer ) : void
nw_framer_prepend_application_protocol ( IntPtr framer, IntPtr protocol_options ) : bool
nw_framer_schedule_wakeup ( IntPtr framer, ulong milliseconds ) : void
nw_framer_set_cleanup_handler ( IntPtr framer, void* cleanup_handler ) : void
nw_framer_set_input_handler ( IntPtr framer, void* input_handler ) : void
nw_framer_set_output_handler ( IntPtr framer, void* output_handler ) : void
nw_framer_set_stop_handler ( IntPtr framer, void* stop_handler ) : void
nw_framer_set_wakeup_handler ( IntPtr framer, void* wakeup_handler ) : void
nw_framer_write_output ( IntPtr framer, byte* output_buffer, nuint output_length ) : void
nw_framer_write_output_data ( IntPtr framer, IntPtr output_data ) : void
nw_framer_write_output_no_copy ( IntPtr framer, nuint output_length ) : bool

메소드 상세

CreateMessage() 공개 메소드

public CreateMessage ( ) : Network.NWFramerMessage
리턴 Network.NWFramerMessage

CreateOptions() 공개 정적인 메소드

public static CreateOptions ( Network.NWProtocolDefinition protocolDefinition ) : T?
protocolDefinition Network.NWProtocolDefinition
리턴 T?

DeliverInput() 공개 메소드

public DeliverInput ( ReadOnlySpan buffer, Network.NWFramerMessage message, bool isComplete ) : void
buffer ReadOnlySpan
message Network.NWFramerMessage
isComplete bool
리턴 void

DeliverInputNoCopy() 공개 메소드

public DeliverInputNoCopy ( nuint length, Network.NWFramerMessage message, bool isComplete ) : bool
length nuint
message Network.NWFramerMessage
isComplete bool
리턴 bool

MarkFailedWithError() 공개 메소드

public MarkFailedWithError ( int errorCode ) : void
errorCode int
리턴 void

MarkReady() 공개 메소드

public MarkReady ( ) : void
리턴 void

PassThroughInput() 공개 메소드

public PassThroughInput ( ) : void
리턴 void

PassThroughOutput() 공개 메소드

public PassThroughOutput ( ) : void
리턴 void

PrependApplicationProtocol() 공개 메소드

public PrependApplicationProtocol ( Network.NWProtocolOptions options ) : bool
options Network.NWProtocolOptions
리턴 bool

ScheduleWakeup() 공개 메소드

public ScheduleWakeup ( ulong milliseconds ) : void
milliseconds ulong
리턴 void

WriteOutput() 공개 메소드

public WriteOutput ( DispatchData data ) : void
data DispatchData
리턴 void

WriteOutput() 공개 메소드

public WriteOutput ( ReadOnlySpan data ) : void
data ReadOnlySpan
리턴 void

WriteOutputNoCopy() 공개 메소드

public WriteOutputNoCopy ( nuint outputLength ) : bool
outputLength nuint
리턴 bool