rename to servicepoint, new dir structure, WIP build.rs
This commit is contained in:
parent
e9dc4b59d2
commit
f2d98af532
61 changed files with 751 additions and 140 deletions
16
crates/servicepoint_binding_cs/src/ServicePointExtensions.cs
Normal file
16
crates/servicepoint_binding_cs/src/ServicePointExtensions.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace ServicePoint;
|
||||
|
||||
public static class ServicePointExtensions
|
||||
{
|
||||
public static Packet IntoPacket(this Command command)
|
||||
{
|
||||
return Packet.FromCommand(command);
|
||||
}
|
||||
|
||||
public static bool TryIntoCommand(this Packet packet, [MaybeNullWhen(false)] out Command command)
|
||||
{
|
||||
return Command.TryFromPacket(packet, out command);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue