update:更新LeviathanVideo

This commit is contained in:
Liubing\LB
2026-07-01 14:30:24 +08:00
parent 7a7c1e9f50
commit 0fbb47c864
75 changed files with 22923 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
/*----------------------------------------------------------------
// Copyright (C) 2025 Beijing All rights reserved.
//
// Author: huachangmiao
// Create Date: 2025/04/11
// Module Describe:
//----------------------------------------------------------------*/
using System;
using System.Runtime.InteropServices;
namespace LeviathanVideo.Abstractions
{
public class ConstCharPtrMarshaler : ICustomMarshaler
{
private static readonly ConstCharPtrMarshaler Instance = new ConstCharPtrMarshaler();
public object MarshalNativeToManaged(IntPtr pNativeData) => Marshal.PtrToStringAnsi(pNativeData);
public IntPtr MarshalManagedToNative(object managedObj) => IntPtr.Zero;
public void CleanUpNativeData(IntPtr pNativeData)
{
}
public void CleanUpManagedData(object managedObj)
{
}
public int GetNativeDataSize() => IntPtr.Size;
public static ICustomMarshaler GetInstance(string cookie) => Instance;
}
}