FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ClearScript/ClearScript/JavaScript/IArrayBuffer.cs at master · johnholliday/ClearScript · GitHub
johnholliday
/
ClearScript
Public
forked from
ClearFoundry/ClearScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ClearScript
/
ClearScript
/
JavaScript
/
IArrayBuffer.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (39 loc) · 2.09 KB
Breadcrumbs
ClearScript
/
ClearScript
/
JavaScript
/
IArrayBuffer.cs
Copy path
File metadata and controls
43 lines (39 loc) · 2.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace
Microsoft
.
ClearScript
.
JavaScript
{
/// <summary>
/// Represents a JavaScript
/// <see href="https://msdn.microsoft.com/en-us/library/br212474(v=vs.94).aspx">ArrayBuffer</see>.
/// </summary>
public
interface
IArrayBuffer
{
/// <summary>
/// Gets the size of the <c>ArrayBuffer</c> in bytes.
/// </summary>
ulong
Size
{
get
;
}
/// <summary>
/// Creates a byte array containing a copy of the <c>ArrayBuffer</c>'s contents.
/// </summary>
/// <returns>A new byte array containing a copy of the <c>ArrayBuffer</c>'s contents.</returns>
byte
[
]
GetBytes
(
)
;
/// <summary>
/// Copies bytes from the <c>ArrayBuffer</c> into the specified byte array.
/// </summary>
/// <param name="offset">The offset within the <c>ArrayBuffer</c> of the first byte to copy.</param>
/// <param name="count">The maximum number of bytes to copy.</param>
/// <param name="destination">The byte array into which to copy the bytes.</param>
/// <param name="destinationIndex">The index within <paramref name="destination"/> at which to store the first copied byte.</param>
/// <returns>The number of bytes copied.</returns>
ulong
ReadBytes
(
ulong
offset
,
ulong
count
,
byte
[
]
destination
,
ulong
destinationIndex
)
;
/// <summary>
/// Copies bytes from the specified byte array into the <c>ArrayBuffer</c>.
/// </summary>
/// <param name="source">The byte array from which to copy the bytes.</param>
/// <param name="sourceIndex">The index within <paramref name="source"/> of the first byte to copy.</param>
/// <param name="count">The maximum number of bytes to copy.</param>
/// <param name="offset">The offset within the <c>ArrayBuffer</c> at which to store the first copied byte.</param>
/// <returns>The number of bytes copied.</returns>
ulong
WriteBytes
(
byte
[
]
source
,
ulong
sourceIndex
,
ulong
count
,
ulong
offset
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL